diff --git a/src/api/awti/content-types/awti/schema.json b/src/api/awti/content-types/awti/schema.json index 8cf6215..cc39a63 100644 --- a/src/api/awti/content-types/awti/schema.json +++ b/src/api/awti/content-types/awti/schema.json @@ -44,14 +44,20 @@ "type": "relation", "relation": "manyToMany", "target": "api::tek.tek", - "inversedBy": "teks" + "inversedBy": "awtis" }, - "user": { - "plugin": "users-permissions", - "model": "user" + "users_permissions_user": { + "type": "relation", + "relation": "oneToOne", + "target": "plugin::users-permissions.user" }, "slug": { "type": "string" + }, + "admin_user": { + "type": "relation", + "relation": "oneToOne", + "target": "admin::user" } } } diff --git a/src/api/komant/content-types/komant/schema.json b/src/api/komant/content-types/komant/schema.json index e166e48..4062a2c 100644 --- a/src/api/komant/content-types/komant/schema.json +++ b/src/api/komant/content-types/komant/schema.json @@ -21,9 +21,10 @@ "type": "richtext", "required": true }, - "user": { - "plugin": "users-permissions", - "model": "user" + "users_permissions_user": { + "type": "relation", + "relation": "oneToOne", + "target": "plugin::users-permissions.user" }, "teks": { "type": "relation", diff --git a/src/api/tek/content-types/tek/schema.json b/src/api/tek/content-types/tek/schema.json index 1a90db5..d0d7fba 100644 --- a/src/api/tek/content-types/tek/schema.json +++ b/src/api/tek/content-types/tek/schema.json @@ -38,7 +38,7 @@ "type": "relation", "relation": "manyToMany", "target": "api::awti.awti", - "mappedBy": "tek" + "mappedBy": "teks" }, "kouteyAchtey": { "type": "component", @@ -61,9 +61,10 @@ "okiMizikID": { "type": "integer" }, - "user": { - "plugin": "users-permissions", - "model": "user" + "users_permissions_user": { + "type": "relation", + "relation": "oneToOne", + "target": "plugin::users-permissions.user" }, "eksplisit": { "type": "boolean" @@ -79,8 +80,10 @@ "tradiksyonOtomatik": { "type": "boolean" }, - "userAdmin": { - "type": "string" + "admin_user": { + "type": "relation", + "relation": "oneToOne", + "target": "admin::user" } } }