order: add state 'cancellation'
This commit is contained in:
parent
caa9fc54a7
commit
af4196c685
@ -14,14 +14,15 @@
|
||||
"attributes": {
|
||||
"state": {
|
||||
"type": "enumeration",
|
||||
"default": "created",
|
||||
"enum": [
|
||||
"created",
|
||||
"scheduled",
|
||||
"approved",
|
||||
"completed",
|
||||
"cancellation",
|
||||
"cancelled"
|
||||
],
|
||||
"default": "created"
|
||||
]
|
||||
},
|
||||
"price": {
|
||||
"type": "integer"
|
||||
|
||||
9
types/generated/contentTypes.d.ts
vendored
9
types/generated/contentTypes.d.ts
vendored
@ -480,7 +480,14 @@ export interface ApiOrderOrder extends Struct.CollectionTypeSchema {
|
||||
services: Schema.Attribute.Relation<'manyToMany', 'api::service.service'>;
|
||||
slot: Schema.Attribute.Relation<'manyToOne', 'api::slot.slot'>;
|
||||
state: Schema.Attribute.Enumeration<
|
||||
['created', 'scheduled', 'approved', 'completed', 'cancelled']
|
||||
[
|
||||
'created',
|
||||
'scheduled',
|
||||
'approved',
|
||||
'completed',
|
||||
'cancellation',
|
||||
'cancelled',
|
||||
]
|
||||
> &
|
||||
Schema.Attribute.DefaultTo<'created'>;
|
||||
time_end: Schema.Attribute.Time;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user