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:
vchikalkin 2025-08-20 17:23:33 +03:00
parent 8a81a1e251
commit 01fbd1c696
2 changed files with 15 additions and 0 deletions

View File

@ -37,6 +37,13 @@
"active": {
"type": "boolean",
"default": false
},
"price": {
"type": "decimal",
"min": 1
},
"description": {
"type": "text"
}
}
}

View File

@ -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'> &