Update schemas with relations

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-12 06:27:35 +04:00
parent e2937e941c
commit 706c9127f4
3 changed files with 37 additions and 0 deletions
@@ -29,6 +29,22 @@
}, },
"slug": { "slug": {
"type": "string" "type": "string"
},
"teks": {
"type": "relation",
"relation": "manyToMany",
"target": "api::tek.tek",
"inversedBy": "awtis"
},
"admin_user": {
"type": "relation",
"relation": "oneToOne",
"target": "admin::user"
},
"user": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
} }
} }
} }
@@ -19,6 +19,11 @@
"sentAt": { "sentAt": {
"type": "datetime", "type": "datetime",
"required": true "required": true
},
"user": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
} }
} }
} }
+16
View File
@@ -37,6 +37,22 @@
}, },
"tradiksyonOtomatik": { "tradiksyonOtomatik": {
"type": "boolean" "type": "boolean"
},
"awtis": {
"type": "relation",
"relation": "manyToMany",
"target": "api::awti.awti",
"mappedBy": "teks"
},
"admin_user": {
"type": "relation",
"relation": "oneToOne",
"target": "admin::user"
},
"user": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
} }
} }
} }