feat: add bannedUntil field to customer schema (#7)

- Introduced a new 'bannedUntil' datetime field in the customer schema to track when a customer is banned until.
- Updated TypeScript definitions to include the new 'bannedUntil' attribute, ensuring type safety and consistency across the application.
This commit is contained in:
Vlad Chikalkin 2025-08-26 13:18:12 +03:00 committed by GitHub
parent 37c28353a9
commit ccd0947334
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,9 @@
"relation": "oneToMany",
"target": "api::service.service",
"mappedBy": "master"
},
"bannedUntil": {
"type": "datetime"
}
}
}

View File

@ -423,6 +423,7 @@ export interface ApiCustomerCustomer extends Struct.CollectionTypeSchema {
};
attributes: {
active: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo<false>;
bannedUntil: Schema.Attribute.DateTime;
blocks: Schema.Attribute.Relation<'oneToMany', 'api::block.block'>;
clients: Schema.Attribute.Relation<'manyToMany', 'api::customer.customer'>;
createdAt: Schema.Attribute.DateTime;