feat: add price and description fields to service schema
- Introduced new fields 'price' and 'description' in the service schema to enhance service details. - Updated TypeScript definitions to include these new attributes, ensuring type safety and consistency across the application.
This commit is contained in:
parent
8a81a1e251
commit
01fbd1c696
@ -37,6 +37,13 @@
|
||||
"active": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"price": {
|
||||
"type": "decimal",
|
||||
"min": 1
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
8
types/generated/contentTypes.d.ts
vendored
8
types/generated/contentTypes.d.ts
vendored
@ -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'> &
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user