feat: add 'active' boolean attribute to content type schema and TypeScript definitions

This commit is contained in:
vchikalkin 2025-08-01 19:52:12 +03:00
parent 34fff838f9
commit f9c5f08ebd
2 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,10 @@
"type": "time",
"required": true,
"default": "01:00:00.000"
},
"active": {
"type": "boolean",
"default": false
}
}
}

View File

@ -508,6 +508,7 @@ export interface ApiServiceService extends Struct.CollectionTypeSchema {
draftAndPublish: true;
};
attributes: {
active: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo<false>;
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;