From ccd094733408efed2a8718dd077af9e50452b5a5 Mon Sep 17 00:00:00 2001 From: Vlad Chikalkin Date: Tue, 26 Aug 2025 13:18:12 +0300 Subject: [PATCH] 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. --- src/api/customer/content-types/customer/schema.json | 3 +++ types/generated/contentTypes.d.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/src/api/customer/content-types/customer/schema.json b/src/api/customer/content-types/customer/schema.json index ad63d3a..4a3cf11 100644 --- a/src/api/customer/content-types/customer/schema.json +++ b/src/api/customer/content-types/customer/schema.json @@ -78,6 +78,9 @@ "relation": "oneToMany", "target": "api::service.service", "mappedBy": "master" + }, + "bannedUntil": { + "type": "datetime" } } } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index c236f87..45dea69 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -423,6 +423,7 @@ export interface ApiCustomerCustomer extends Struct.CollectionTypeSchema { }; attributes: { active: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo; + bannedUntil: Schema.Attribute.DateTime; blocks: Schema.Attribute.Relation<'oneToMany', 'api::block.block'>; clients: Schema.Attribute.Relation<'manyToMany', 'api::customer.customer'>; createdAt: Schema.Attribute.DateTime;