customer: add field surname

This commit is contained in:
vchikalkin 2025-10-07 11:42:27 +03:00
parent e0a9f55eeb
commit a63eff9f46
2 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,11 @@
"maxLength": 100,
"required": true
},
"surname": {
"type": "string",
"maxLength": 100,
"required": false
},
"telegramId": {
"type": "biginteger",
"unique": true

View File

@ -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'> &