customer.active=false by default

This commit is contained in:
vchikalkin 2025-01-10 19:17:56 +03:00
parent 2580fedfd6
commit 4001b68491
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
},
"active": {
"type": "boolean",
"default": true,
"default": false,
"required": false
},
"clients": {

View File

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