diff --git a/src/api/service/content-types/service/schema.json b/src/api/service/content-types/service/schema.json index 594a3f1..b8d6576 100644 --- a/src/api/service/content-types/service/schema.json +++ b/src/api/service/content-types/service/schema.json @@ -37,6 +37,13 @@ "active": { "type": "boolean", "default": false + }, + "price": { + "type": "decimal", + "min": 1 + }, + "description": { + "type": "text" } } } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index f74f8ce..c236f87 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -519,6 +519,7 @@ export interface ApiServiceService extends Struct.CollectionTypeSchema { createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; + description: Schema.Attribute.Text; duration: Schema.Attribute.Time & Schema.Attribute.Required & Schema.Attribute.DefaultTo<'01:00:00.000'>; @@ -535,6 +536,13 @@ export interface ApiServiceService extends Struct.CollectionTypeSchema { maxLength: 100; }>; orders: Schema.Attribute.Relation<'manyToMany', 'api::order.order'>; + price: Schema.Attribute.Decimal & + Schema.Attribute.SetMinMax< + { + min: 1; + }, + number + >; publishedAt: Schema.Attribute.DateTime; updatedAt: Schema.Attribute.DateTime; updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &