diff --git a/src/api/customer/content-types/customer/schema.json b/src/api/customer/content-types/customer/schema.json index 6f11f2a..5ea221f 100644 --- a/src/api/customer/content-types/customer/schema.json +++ b/src/api/customer/content-types/customer/schema.json @@ -40,17 +40,17 @@ "required": false, "default": false }, - "clients": { + "invited": { "type": "relation", "relation": "manyToMany", "target": "api::customer.customer", - "inversedBy": "masters" + "inversedBy": "invitedBy" }, - "masters": { + "invitedBy": { "type": "relation", "relation": "manyToMany", "target": "api::customer.customer", - "mappedBy": "clients" + "mappedBy": "invited" }, "blocks": { "type": "relation", diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 8b4adf4..d0964e1 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -425,17 +425,20 @@ export interface ApiCustomerCustomer extends Struct.CollectionTypeSchema { active: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo; bannedUntil: Schema.Attribute.DateTime; blocks: Schema.Attribute.Relation<'oneToMany', 'api::block.block'>; - clients: Schema.Attribute.Relation<'manyToMany', 'api::customer.customer'>; createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; + invited: Schema.Attribute.Relation<'manyToMany', 'api::customer.customer'>; + invitedBy: Schema.Attribute.Relation< + 'manyToMany', + 'api::customer.customer' + >; locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation< 'oneToMany', 'api::customer.customer' > & Schema.Attribute.Private; - masters: Schema.Attribute.Relation<'manyToMany', 'api::customer.customer'>; name: Schema.Attribute.String & Schema.Attribute.Required & Schema.Attribute.SetMinMaxLength<{