@@ -2,44 +2,69 @@ import mongoose from 'mongoose';
22
33const ClubSchema = new mongoose . Schema (
44 {
5- name : { type : String , required : true } ,
6- subtitle : { type : String , default : '' } ,
7- homeDescription : { type : String , default : '' } ,
8- clubDescription : { type : String , default : '' } ,
9- ownerDescription : { type : String , default : '' } ,
10- logo : { type : String , default : '' } , // URL ou chemin du logo
5+ name : {
6+ type : String ,
7+ default : 'Saint Barthélémy Volley-Ball' ,
8+ required : true ,
9+ } ,
10+ subtitle : {
11+ type : String ,
12+ default : 'Passion, Performance, Partage' , // Slogan plus dynamique
13+ required : true ,
14+ } ,
15+ homeDescription : {
16+ type : String ,
17+ default :
18+ 'Bienvenue sur le site officiel du Saint Barthélémy Volley-Ball, le club où la passion du volley rencontre l’esprit d’équipe et la convivialité.' ,
19+ } ,
20+ clubDescription : {
21+ type : String ,
22+ default :
23+ 'Le club propose des entraînements pour tous les niveaux, des jeunes aux seniors, dans un esprit de partage et de progression.' ,
24+ } ,
25+ ownerDescription : {
26+ type : String ,
27+ default :
28+ 'Notre équipe dirigeante est composée de bénévoles passionnés, engagés pour le développement du volley-ball à Saint-Barthélémy.' ,
29+ } ,
30+ logo : {
31+ type : String ,
32+ default : '/assets/images/default_logo.png' , // chemin local par défaut
33+ } ,
1134 photo : {
12- type : String , // URL Nextcloud
13- trim : true ,
35+ type : String ,
36+ default : '/assets/images/default_club_photo.png' , // chemin local par défaut
1437 } ,
15- email : { type : String , default : '' } ,
16- phone : { type : String , default : '' } ,
17- address : { type : String , default : '' } ,
38+ email : { type : String , default : 'contact@saintbarthvolley.fr ' } ,
39+ phone : { type : String , default : '(+33) 02 41 XX XX XX ' } ,
40+ address : { type : String , default : 'Saint-Barthélemy, Caraïbes ' } ,
1841
1942 // Liens sociaux
2043 social_links : {
2144 facebook : { type : String , default : '' } ,
2245 instagram : { type : String , default : '' } ,
2346 youtube : { type : String , default : '' } ,
2447 sporteasy : { type : String , default : '' } ,
48+ clubMerch : { type : String , default : '' } ,
49+ clubRegistration : { type : String , default : '' } ,
2550 website : { type : String , default : '' } ,
2651 other : { type : String , default : '' } ,
2752 } ,
2853
2954 // Informations légales
3055 legal_info : {
31- associationName : { type : String , default : '' } ,
32- legalForm : { type : String , default : '' } ,
56+ associationName : { type : String , default : 'Saint Barth Volley-Ball ' } ,
57+ legalForm : { type : String , default : 'Association loi 1901 ' } ,
3358 siret : { type : String , default : '' } ,
3459 rna : { type : String , default : '' } ,
35- headOffice : { type : String , default : '' } ,
60+ headOffice : { type : String , default : 'Saint-Barthélemy ' } ,
3661 publicationDate : { type : Date , default : null } ,
3762 responsible : { type : String , default : '' } ,
3863 hostingProvider : { type : String , default : '' } ,
3964 updatedAt : { type : Date , default : null } ,
4065 } ,
4166 } ,
4267 { timestamps : true } ,
43- ) ; // createdAt et updatedAt automatiques
68+ ) ;
4469
4570export default mongoose . model ( 'Club' , ClubSchema ) ;
0 commit comments