Compare commits

...

1 Commits

Author SHA1 Message Date
vchikalkin
856e651379 feat: add bannedUntil field to customer schema
- 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.
2025-08-25 19:15:41 +03:00
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;