Minimalist schemas

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-12 06:23:03 +04:00
parent f2795bc9b1
commit 8a893157ed
3 changed files with 5 additions and 96 deletions
+2 -31
View File
@@ -8,15 +8,12 @@
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"alias": {
"type": "string",
"unique": true,
"required": true
"type": "string"
},
"prenon": {
"type": "string"
@@ -30,34 +27,8 @@
"nesans": {
"type": "date"
},
"foto": {
"collection": "file",
"via": "related",
"allowedTypes": [
"images"
],
"plugin": "upload",
"required": false,
"pluginOptions": {}
},
"teks": {
"type": "relation",
"relation": "manyToMany",
"target": "api::tek.tek",
"inversedBy": "awtis"
},
"users_permissions_user": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
},
"slug": {
"type": "string"
},
"admin_user": {
"type": "relation",
"relation": "oneToOne",
"target": "admin::user"
}
}
}
@@ -8,29 +8,14 @@
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true,
"privateAttributes": [
"createdAt",
"updatedAt"
]
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"kontni": {
"type": "richtext",
"required": true
},
"users_permissions_user": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
},
"teks": {
"type": "relation",
"relation": "oneToOne",
"target": "api::tek.tek"
},
"sentAt": {
"type": "datetime",
"required": true
+1 -48
View File
@@ -8,10 +8,9 @@
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"tit": {
"type": "string",
@@ -21,69 +20,23 @@
"type": "richtext",
"required": true
},
"tradiksyon": {
"type": "component",
"repeatable": false,
"component": "trad.traductions"
},
"lanne": {
"type": "integer"
},
"lyen": {
"type": "component",
"repeatable": true,
"component": "url.liens"
},
"awtis": {
"type": "relation",
"relation": "manyToMany",
"target": "api::awti.awti",
"mappedBy": "teks"
},
"kouteyAchtey": {
"type": "component",
"repeatable": true,
"component": "store.store"
},
"slug": {
"type": "string"
},
"kouveti": {
"model": "file",
"via": "related",
"allowedTypes": [
"images"
],
"plugin": "upload",
"required": false,
"pluginOptions": {}
},
"okiMizikID": {
"type": "integer"
},
"users_permissions_user": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
},
"eksplisit": {
"type": "boolean"
},
"komante": {
"type": "relation",
"relation": "oneToOne",
"target": "api::komant.komant"
},
"forceSlug": {
"type": "boolean"
},
"tradiksyonOtomatik": {
"type": "boolean"
},
"admin_user": {
"type": "relation",
"relation": "oneToOne",
"target": "admin::user"
}
}
}