feat: add 'active' boolean attribute to content type schema and TypeScript definitions (#5)
This commit is contained in:
parent
34fff838f9
commit
d592c9cf31
@ -31,6 +31,10 @@
|
|||||||
"type": "time",
|
"type": "time",
|
||||||
"required": true,
|
"required": true,
|
||||||
"default": "01:00:00.000"
|
"default": "01:00:00.000"
|
||||||
|
},
|
||||||
|
"active": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1
types/generated/contentTypes.d.ts
vendored
1
types/generated/contentTypes.d.ts
vendored
@ -508,6 +508,7 @@ export interface ApiServiceService extends Struct.CollectionTypeSchema {
|
|||||||
draftAndPublish: true;
|
draftAndPublish: true;
|
||||||
};
|
};
|
||||||
attributes: {
|
attributes: {
|
||||||
|
active: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo<false>;
|
||||||
createdAt: Schema.Attribute.DateTime;
|
createdAt: Schema.Attribute.DateTime;
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||||
Schema.Attribute.Private;
|
Schema.Attribute.Private;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user