feat: add 'active' boolean attribute to content type schema and TypeScript definitions (#5)

This commit is contained in:
Vlad Chikalkin 2025-08-01 19:53:47 +03:00 committed by GitHub
parent 34fff838f9
commit d592c9cf31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;