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",
"target": "api::contents-folder.contents-folder",
"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",
"target": "api::content.content",
"mappedBy": "folder"
},
"sequence": {
"type": "boolean",
"default": false,
"required": true
}
}
}

View File

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

View File

@ -30,6 +30,21 @@
"type": "relation",
"relation": "oneToOne",
"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"
}
}
}