diff --git a/src/api/customer/content-types/customer/schema.json b/src/api/customer/content-types/customer/schema.json index 7fa6042..6b50d4c 100644 --- a/src/api/customer/content-types/customer/schema.json +++ b/src/api/customer/content-types/customer/schema.json @@ -17,6 +17,11 @@ "maxLength": 100, "required": true }, + "surname": { + "type": "string", + "maxLength": 100, + "required": false + }, "telegramId": { "type": "biginteger", "unique": true diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index ffc87df..f25ea84 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -431,6 +431,10 @@ export interface ApiCustomerCustomer extends Struct.CollectionTypeSchema { 'oneToMany', 'api::subscription.subscription' >; + surname: Schema.Attribute.String & + Schema.Attribute.SetMinMaxLength<{ + maxLength: 100; + }>; telegramId: Schema.Attribute.BigInteger & Schema.Attribute.Unique; updatedAt: Schema.Attribute.DateTime; updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &