customer::service relations
This commit is contained in:
parent
970c391b0f
commit
3c2c7701b1
@ -70,6 +70,12 @@
|
||||
},
|
||||
"photoUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"services": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::service.service",
|
||||
"mappedBy": "master"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,7 +4,8 @@
|
||||
"info": {
|
||||
"singularName": "service",
|
||||
"pluralName": "services",
|
||||
"displayName": "service"
|
||||
"displayName": "service",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
@ -19,6 +20,12 @@
|
||||
"relation": "manyToMany",
|
||||
"target": "api::order.order",
|
||||
"mappedBy": "services"
|
||||
},
|
||||
"master": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::customer.customer",
|
||||
"inversedBy": "services"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
4
types/generated/contentTypes.d.ts
vendored
4
types/generated/contentTypes.d.ts
vendored
@ -440,6 +440,7 @@ export interface ApiCustomerCustomer extends Struct.CollectionTypeSchema {
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
role: Schema.Attribute.Enumeration<['client', 'master']> &
|
||||
Schema.Attribute.Required;
|
||||
services: Schema.Attribute.Relation<'oneToMany', 'api::service.service'>;
|
||||
slots: Schema.Attribute.Relation<'oneToMany', 'api::slot.slot'>;
|
||||
telegramId: Schema.Attribute.BigInteger & Schema.Attribute.Unique;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
@ -465,6 +466,7 @@ export interface ApiOrderOrder extends Struct.CollectionTypeSchema {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
date: Schema.Attribute.Date;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::order.order'> &
|
||||
Schema.Attribute.Private;
|
||||
@ -489,6 +491,7 @@ export interface ApiOrderOrder extends Struct.CollectionTypeSchema {
|
||||
export interface ApiServiceService extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'services';
|
||||
info: {
|
||||
description: '';
|
||||
displayName: 'service';
|
||||
pluralName: 'services';
|
||||
singularName: 'service';
|
||||
@ -506,6 +509,7 @@ export interface ApiServiceService extends Struct.CollectionTypeSchema {
|
||||
'api::service.service'
|
||||
> &
|
||||
Schema.Attribute.Private;
|
||||
master: Schema.Attribute.Relation<'manyToOne', 'api::customer.customer'>;
|
||||
name: Schema.Attribute.String;
|
||||
orders: Schema.Attribute.Relation<'manyToMany', 'api::order.order'>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user