upgrade entities
This commit is contained in:
parent
4001b68491
commit
844365c40a
@ -68,14 +68,14 @@
|
|||||||
"target": "api::order.order",
|
"target": "api::order.order",
|
||||||
"mappedBy": "client"
|
"mappedBy": "client"
|
||||||
},
|
},
|
||||||
"setting": {
|
|
||||||
"type": "relation",
|
|
||||||
"relation": "oneToOne",
|
|
||||||
"target": "api::setting.setting",
|
|
||||||
"mappedBy": "customer"
|
|
||||||
},
|
|
||||||
"photoUrl": {
|
"photoUrl": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
"masterOrders": {
|
||||||
|
"type": "relation",
|
||||||
|
"relation": "oneToMany",
|
||||||
|
"target": "api::order.order",
|
||||||
|
"mappedBy": "master"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,6 +46,15 @@
|
|||||||
"relation": "manyToOne",
|
"relation": "manyToOne",
|
||||||
"target": "api::block.block",
|
"target": "api::block.block",
|
||||||
"inversedBy": "orders"
|
"inversedBy": "orders"
|
||||||
|
},
|
||||||
|
"orderNumber": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"master": {
|
||||||
|
"type": "relation",
|
||||||
|
"relation": "manyToOne",
|
||||||
|
"target": "api::customer.customer",
|
||||||
|
"inversedBy": "masterOrders"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,12 +11,6 @@
|
|||||||
},
|
},
|
||||||
"pluginOptions": {},
|
"pluginOptions": {},
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"customer": {
|
|
||||||
"type": "relation",
|
|
||||||
"relation": "oneToOne",
|
|
||||||
"target": "api::customer.customer",
|
|
||||||
"inversedBy": "setting"
|
|
||||||
},
|
|
||||||
"recordingByBlocks": {
|
"recordingByBlocks": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
|
|||||||
5
types/generated/contentTypes.d.ts
vendored
5
types/generated/contentTypes.d.ts
vendored
@ -429,6 +429,7 @@ export interface ApiCustomerCustomer extends Struct.CollectionTypeSchema {
|
|||||||
'api::customer.customer'
|
'api::customer.customer'
|
||||||
> &
|
> &
|
||||||
Schema.Attribute.Private;
|
Schema.Attribute.Private;
|
||||||
|
masterOrders: Schema.Attribute.Relation<'oneToMany', 'api::order.order'>;
|
||||||
masters: Schema.Attribute.Relation<'manyToMany', 'api::customer.customer'>;
|
masters: Schema.Attribute.Relation<'manyToMany', 'api::customer.customer'>;
|
||||||
name: Schema.Attribute.String & Schema.Attribute.Required;
|
name: Schema.Attribute.String & Schema.Attribute.Required;
|
||||||
orders: Schema.Attribute.Relation<'oneToMany', 'api::order.order'>;
|
orders: Schema.Attribute.Relation<'oneToMany', 'api::order.order'>;
|
||||||
@ -439,7 +440,6 @@ export interface ApiCustomerCustomer extends Struct.CollectionTypeSchema {
|
|||||||
publishedAt: Schema.Attribute.DateTime;
|
publishedAt: Schema.Attribute.DateTime;
|
||||||
role: Schema.Attribute.Enumeration<['client', 'master']> &
|
role: Schema.Attribute.Enumeration<['client', 'master']> &
|
||||||
Schema.Attribute.Required;
|
Schema.Attribute.Required;
|
||||||
setting: Schema.Attribute.Relation<'oneToOne', 'api::setting.setting'>;
|
|
||||||
slots: Schema.Attribute.Relation<'oneToMany', 'api::slot.slot'>;
|
slots: Schema.Attribute.Relation<'oneToMany', 'api::slot.slot'>;
|
||||||
telegramId: Schema.Attribute.BigInteger & Schema.Attribute.Unique;
|
telegramId: Schema.Attribute.BigInteger & Schema.Attribute.Unique;
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
updatedAt: Schema.Attribute.DateTime;
|
||||||
@ -468,6 +468,8 @@ export interface ApiOrderOrder extends Struct.CollectionTypeSchema {
|
|||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::order.order'> &
|
localizations: Schema.Attribute.Relation<'oneToMany', 'api::order.order'> &
|
||||||
Schema.Attribute.Private;
|
Schema.Attribute.Private;
|
||||||
|
master: Schema.Attribute.Relation<'manyToOne', 'api::customer.customer'>;
|
||||||
|
orderNumber: Schema.Attribute.Integer;
|
||||||
price: Schema.Attribute.Integer;
|
price: Schema.Attribute.Integer;
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
publishedAt: Schema.Attribute.DateTime;
|
||||||
service: Schema.Attribute.Text;
|
service: Schema.Attribute.Text;
|
||||||
@ -496,7 +498,6 @@ export interface ApiSettingSetting extends Struct.CollectionTypeSchema {
|
|||||||
createdAt: Schema.Attribute.DateTime;
|
createdAt: Schema.Attribute.DateTime;
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||||
Schema.Attribute.Private;
|
Schema.Attribute.Private;
|
||||||
customer: Schema.Attribute.Relation<'oneToOne', 'api::customer.customer'>;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||||
localizations: Schema.Attribute.Relation<
|
localizations: Schema.Attribute.Relation<
|
||||||
'oneToMany',
|
'oneToMany',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user