fix fields types & names
This commit is contained in:
parent
efe34ba945
commit
b30e9e46fb
@ -12,11 +12,11 @@
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"datestart": {
|
||||
"datetime_start": {
|
||||
"type": "datetime",
|
||||
"required": true
|
||||
},
|
||||
"dateend": {
|
||||
"datetime_end": {
|
||||
"type": "datetime",
|
||||
"required": true
|
||||
},
|
||||
@ -29,12 +29,12 @@
|
||||
],
|
||||
"default": "created"
|
||||
},
|
||||
"sessionsTotal": {
|
||||
"sessions_total": {
|
||||
"type": "integer",
|
||||
"default": 10,
|
||||
"required": true
|
||||
},
|
||||
"sessionsCompleted": {
|
||||
"sessions_completed": {
|
||||
"type": "integer",
|
||||
"default": 0
|
||||
},
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
"target": "api::block.block",
|
||||
"inversedBy": "orders"
|
||||
},
|
||||
"orderNumber": {
|
||||
"order_number": {
|
||||
"type": "integer"
|
||||
},
|
||||
"slot": {
|
||||
@ -50,11 +50,11 @@
|
||||
"target": "api::slot.slot",
|
||||
"inversedBy": "orders"
|
||||
},
|
||||
"datestart": {
|
||||
"type": "datetime"
|
||||
"time_start": {
|
||||
"type": "time"
|
||||
},
|
||||
"dateend": {
|
||||
"type": "datetime"
|
||||
"time_end": {
|
||||
"type": "time"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,14 +4,15 @@
|
||||
"info": {
|
||||
"singularName": "setting",
|
||||
"pluralName": "settings",
|
||||
"displayName": "Setting"
|
||||
"displayName": "Setting",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"recordingByBlocks": {
|
||||
"recording_by_blocks": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
|
||||
@ -12,12 +12,12 @@
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"datestart": {
|
||||
"type": "datetime",
|
||||
"time_start": {
|
||||
"type": "time",
|
||||
"required": true
|
||||
},
|
||||
"dateend": {
|
||||
"type": "datetime",
|
||||
"time_end": {
|
||||
"type": "time",
|
||||
"required": true
|
||||
},
|
||||
"state": {
|
||||
@ -39,6 +39,9 @@
|
||||
"relation": "manyToOne",
|
||||
"target": "api::customer.customer",
|
||||
"inversedBy": "slots"
|
||||
},
|
||||
"date": {
|
||||
"type": "date"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
23
types/generated/contentTypes.d.ts
vendored
23
types/generated/contentTypes.d.ts
vendored
@ -385,16 +385,17 @@ export interface ApiBlockBlock extends Struct.CollectionTypeSchema {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
dateend: Schema.Attribute.DateTime & Schema.Attribute.Required;
|
||||
datestart: Schema.Attribute.DateTime & Schema.Attribute.Required;
|
||||
datetime_end: Schema.Attribute.DateTime & Schema.Attribute.Required;
|
||||
datetime_start: Schema.Attribute.DateTime & Schema.Attribute.Required;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::block.block'> &
|
||||
Schema.Attribute.Private;
|
||||
master: Schema.Attribute.Relation<'manyToOne', 'api::customer.customer'>;
|
||||
orders: Schema.Attribute.Relation<'oneToMany', 'api::order.order'>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
sessionsCompleted: Schema.Attribute.Integer & Schema.Attribute.DefaultTo<0>;
|
||||
sessionsTotal: Schema.Attribute.Integer &
|
||||
sessions_completed: Schema.Attribute.Integer &
|
||||
Schema.Attribute.DefaultTo<0>;
|
||||
sessions_total: Schema.Attribute.Integer &
|
||||
Schema.Attribute.Required &
|
||||
Schema.Attribute.DefaultTo<10>;
|
||||
state: Schema.Attribute.Enumeration<['created', 'paid', 'deleted']> &
|
||||
@ -464,12 +465,10 @@ export interface ApiOrderOrder extends Struct.CollectionTypeSchema {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
dateend: Schema.Attribute.DateTime;
|
||||
datestart: Schema.Attribute.DateTime;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::order.order'> &
|
||||
Schema.Attribute.Private;
|
||||
orderNumber: Schema.Attribute.Integer;
|
||||
order_number: Schema.Attribute.Integer;
|
||||
price: Schema.Attribute.Integer;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
service: Schema.Attribute.Text;
|
||||
@ -478,6 +477,8 @@ export interface ApiOrderOrder extends Struct.CollectionTypeSchema {
|
||||
['created', 'scheduled', 'approved', 'completed', 'cancelled']
|
||||
> &
|
||||
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;
|
||||
@ -487,6 +488,7 @@ export interface ApiOrderOrder extends Struct.CollectionTypeSchema {
|
||||
export interface ApiSettingSetting extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'settings';
|
||||
info: {
|
||||
description: '';
|
||||
displayName: 'Setting';
|
||||
pluralName: 'settings';
|
||||
singularName: 'setting';
|
||||
@ -505,7 +507,7 @@ export interface ApiSettingSetting extends Struct.CollectionTypeSchema {
|
||||
> &
|
||||
Schema.Attribute.Private;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
recordingByBlocks: Schema.Attribute.Boolean &
|
||||
recording_by_blocks: Schema.Attribute.Boolean &
|
||||
Schema.Attribute.DefaultTo<false>;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
@ -528,8 +530,7 @@ export interface ApiSlotSlot extends Struct.CollectionTypeSchema {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
dateend: Schema.Attribute.DateTime & Schema.Attribute.Required;
|
||||
datestart: Schema.Attribute.DateTime & Schema.Attribute.Required;
|
||||
date: Schema.Attribute.Date;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::slot.slot'> &
|
||||
Schema.Attribute.Private;
|
||||
@ -537,6 +538,8 @@ 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