Add board feature

This commit is contained in:
julien vdb
2025-03-28 14:52:43 +01:00
parent 9d4ecb2733
commit c6d5936639
23 changed files with 3485 additions and 11 deletions

View File

@@ -0,0 +1,66 @@
{
"kind": "collectionType",
"collectionName": "chorals",
"info": {
"singularName": "choral",
"pluralName": "chorals",
"displayName": "Choral",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"cover": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
]
},
"country": {
"type": "string"
},
"address": {
"type": "string"
},
"city": {
"type": "string"
},
"postal": {
"type": "integer"
},
"owner": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user",
"inversedBy": "choralOwner"
},
"admins": {
"type": "relation",
"relation": "manyToMany",
"target": "plugin::users-permissions.user",
"inversedBy": "choralAdmin"
},
"users": {
"type": "relation",
"relation": "manyToMany",
"target": "plugin::users-permissions.user",
"inversedBy": "chorals"
},
"boards": {
"type": "relation",
"relation": "oneToMany",
"target": "api::board.board",
"mappedBy": "choral"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* choral controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::choral.choral');

View File

@@ -0,0 +1,7 @@
/**
* choral router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::choral.choral');

View File

@@ -0,0 +1,7 @@
/**
* choral service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::choral.choral');