refactor: remove time fields from order and slot schemas to streamline data structure
This commit is contained in:
parent
456f9b071c
commit
cd5456f7f5
@ -51,12 +51,6 @@
|
||||
"target": "api::slot.slot",
|
||||
"inversedBy": "orders"
|
||||
},
|
||||
"time_start": {
|
||||
"type": "time"
|
||||
},
|
||||
"time_end": {
|
||||
"type": "time"
|
||||
},
|
||||
"services": {
|
||||
"type": "relation",
|
||||
"relation": "manyToMany",
|
||||
|
||||
@ -12,14 +12,6 @@
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"time_start": {
|
||||
"type": "time",
|
||||
"required": true
|
||||
},
|
||||
"time_end": {
|
||||
"type": "time",
|
||||
"required": true
|
||||
},
|
||||
"state": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
@ -40,9 +32,6 @@
|
||||
"target": "api::customer.customer",
|
||||
"inversedBy": "slots"
|
||||
},
|
||||
"date": {
|
||||
"type": "date"
|
||||
},
|
||||
"datetime_end": {
|
||||
"type": "datetime",
|
||||
"required": true
|
||||
|
||||
5
types/generated/contentTypes.d.ts
vendored
5
types/generated/contentTypes.d.ts
vendored
@ -492,8 +492,6 @@ export interface ApiOrderOrder extends Struct.CollectionTypeSchema {
|
||||
]
|
||||
> &
|
||||
Schema.Attribute.DefaultTo<'created'>;
|
||||
time_end: Schema.Attribute.Time;
|
||||
time_start: Schema.Attribute.Time;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
@ -579,7 +577,6 @@ export interface ApiSlotSlot extends Struct.CollectionTypeSchema {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
date: Schema.Attribute.Date;
|
||||
datetime_end: Schema.Attribute.DateTime & Schema.Attribute.Required;
|
||||
datetime_start: Schema.Attribute.DateTime & Schema.Attribute.Required;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
@ -589,8 +586,6 @@ export interface ApiSlotSlot extends Struct.CollectionTypeSchema {
|
||||
orders: Schema.Attribute.Relation<'oneToMany', 'api::order.order'>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
state: Schema.Attribute.Enumeration<['open', 'reserved', 'closed']>;
|
||||
time_end: Schema.Attribute.Time & Schema.Attribute.Required;
|
||||
time_start: Schema.Attribute.Time & Schema.Attribute.Required;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user