Multiple previous/next content for a content

This commit is contained in:
DrMint 2023-05-08 00:29:01 +02:00
parent cd0cc4c995
commit 4a2e013397
4 changed files with 30 additions and 5 deletions

View File

@ -58,6 +58,18 @@
"relation": "manyToOne", "relation": "manyToOne",
"target": "api::contents-folder.contents-folder", "target": "api::contents-folder.contents-folder",
"inversedBy": "contents" "inversedBy": "contents"
},
"next_contents": {
"type": "relation",
"relation": "manyToMany",
"target": "api::content.content",
"inversedBy": "previous_contents"
},
"previous_contents": {
"type": "relation",
"relation": "manyToMany",
"target": "api::content.content",
"inversedBy": "next_contents"
} }
} }
} }

View File

@ -41,11 +41,6 @@
"relation": "oneToMany", "relation": "oneToMany",
"target": "api::content.content", "target": "api::content.content",
"mappedBy": "folder" "mappedBy": "folder"
},
"sequence": {
"type": "boolean",
"default": false,
"required": true
} }
} }
} }

View File

@ -558,6 +558,9 @@
}, },
"level_x": { "level_x": {
"type": "string" "type": "string"
},
"player_name_tooltip": {
"type": "text"
} }
} }
} }

View File

@ -30,6 +30,21 @@
"type": "relation", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
"target": "api::language.language" "target": "api::language.language"
},
"transcribers": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
},
"translators": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
},
"proofreaders": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
} }
} }
} }