1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
| ---
detect_relations: true
options:
collate: utf8_unicode_ci
charset: utf8
type: InnoDB
Profile:
columns:
sf_guard_user_id:
type: integer
adresse:
type: string(255)
code_postale:
type: string(5)
ville:
type: string(255)
numero_portable:
type: string(10)
numero_tel:
type: string(10)
photo:
type: string(255)
date_de_naissance:
type: date
lieu_de_naissance:
type: string(255)
relations:
sfGuardUser:
class: sfGuardUser
foreignType: one
onDelete: cascade
Module:
columns:
token:
type: string(255)
description:
type: string(255)
route:
type: string(255)
Menu:
actAs:
NestedSet:
hasManyRoots: true
rootColumnName: root_id
columns:
name:
type: string(255)
is_activated:
type: boolean
default: true
module_id:
type: integer(4)
notnull: true
url:
type: string(255)
notnull: false
page_id:
type: integer
notnull: false
relations:
Type:
class: Module
local: module_id
foreign: id
foreignAlias: Categories
onDelete: cascade
Page: { local: page_id, foreign: id }
Page:
actAs: { Timestampable: ~ }
columns:
token:
type: string(255)
title:
type: string(55)
content:
type: blob(65535)
short_description:
type: string(255)
is_deletable:
type: boolean
relations:
Category:
class: Category
local: Category_id
foreign: id
foreignAlias: Pages
onDelete: cascade
# lien n-n pour la modification des pages
PageSfGuardUser:
columns:
page_id: { type: integer, primary: true }
sf_guard_user_id: { type: integer, primary: true }
relations:
Page: { onDelete: CASCADE, local: page_id, foreign: id }
SfGuardUser: { onDelete: CASCADE, local: sf_guard_user_id, foreign: id }
TypeActualite:
columns:
name:
type: string(255)
description:
type: string(255)
Actualite:
actAs: [Timestampable]
columns:
token:
type: string(255)
title:
type: string(155)
content:
type: string(255)
is_public:
type: boolean
is_publish:
type: boolean
content:
type: blob(65535)
type_actualite_id:
type: integer(4)
notnull: true
author_id:
type: integer
relations:
typeid:
class: TypeActualite
local: type_actualite_id
foreign: id
foreignAlias: Actualites
onDelete: cascade
sfGuardUser:
class: sfGuardUser
local: author_id
foreign: id
foreignAlias: Actualites
# lien n-n pour la creation d'actualites dans un type
TypeActualiteSfGuardUser:
columns:
type_id: { type: integer, primary: true }
sf_guard_user_id: { type: integer, primary: true }
relations:
TypeActualite: { onDelete: CASCADE, local: type_id, foreign: id }
SfGuardUser: { onDelete: CASCADE, local: sf_guard_user_id, foreign: id }
# exemple : etablissement, service, bureau, antenne, commission...
TypeEtablissement:
columns:
name:
type: string(255)
Pole:
columns:
name:
type: string(255)
color:
type: string(255)
Etablissement:
actAs:
NestedSet:
hasManyRoots: true
rootColumnName: root_id
columns:
token:
type: string(255)
name:
type: string(55)
type_etablissement_id:
type: integer(4)
pole_id:
type: integer(4)
adress: string(255)
cp: string(55)
ville: string(55)
page_presentation_id: {type: integer}
page_contact_id: {type: integer}
page_equipe_id: {type: integer}
page_projet_id: {type: integer}
page_outils_loi_id: {type: integer}
page_actions_id: {type: integer}
page_evaluation_interne_id: {type: integer}
page_tableau_debord_id: {type: integer}
type_actualite_id: {type: integer}
relations:
typeId:
class: TypeEtablissement
local: type_etablissement_id
foreign: id
onDelete: cascade
foreignAlias: Etablissements
pagePresentationId: {class: Page, local: page_presentation_id, foreign: id, foreignAlias: Etablissements}
pagecontactId: {class: Page, local: page_contact_id, foreign: id, foreignAlias: Etablissements}
pageEquipeId: {class: Page, local: page_equipe_id, foreign: id, foreignAlias: Etablissements}
pageProjetId: {class: Page, local: page_projet_id, foreign: id, foreignAlias: Etablissements}
pageOutilsDeLoiId: {class: Page, local: page_outils_loi_id, foreign: id, foreignAlias: Etablissements}
pageActionsId: {class: Page, local: page_actions_id, foreign: id, foreignAlias: Etablissements}
pageEvaluationInterneId: {class: Page, local: page_evaluation_interne_id, foreign: id, foreignAlias: Etablissements}
pageTableauDeBordId: {class: Page, local: page_tableau_debord_id, foreign: id, foreignAlias: Etablissements}
typeActualiteId: {class: TypeActualite, local: type_actualite_id, foreign: id, foreignAlias: Etablissements}
EtablissementUserRole:
columns:
etablissement_id:
type: integer
notnull: true
sf_guard_user_id:
type: integer
notnull: true
intitule_role:
type: string(255)
relations:
roleIdetablissement:
class: Etablissement
local: etablissement_id
foreign: id
onDelete: cascade
foreignAlias: Roles
roleUser:
class: sfGuardUser
local: sf_guard_user_id
foreign: id
foreignAlias: Roles
onDelete: cascade
Vehicule:
columns:
immatriculation:
type: string(255)
notnull: true
type:
type: string(255)
marque:
type: string(255)
modele:
type: string(255)
kilometrage:
type: integer
observation:
type: string(255)
etablissement_id:
type: integer(4)
relations:
etablissementId:
class: Etablissement
local: etablissement_id
foreign: id
foreignAlias: Vehicules
Ouvrage:
columns:
isbn:
type: string(255)
notnull: true
titre:
type: string(255)
resume:
type: string(255)
observation:
type: string(255)
etablissement_id:
type: integer(4)
relations:
etablissementId:
class: Etablissement
local: etablissement_id
foreign: id
foreignAlias: Ouvrages
Partenaire:
columns:
nom:
type: string(255)
logo:
type: string(255)
type:
type: enum
values: [financeur structurel, collaborateur ponctuel]
default: [financeur structurel]
lien:
type: string(255)
OffresEmploi:
actAs: [Timestampable]
columns:
intitule:
type: string(255)
contrat:
type: enum
values: [CDI, CDD, Apprentissage]
default: [CDI]
contratType:
type: enum
values: [Temps plein, Temps partiel]
default: [temps plein]
contratTime:
type: string(255)
default: indertermine
lieu:
type: string(255)
content:
type: blob(65535)
active:
type: boolean
token:
type: string(255)
etablissement_id:
type: integer(4)
notnull: false
expired_at:
type: timestamp
notnull: true
relations:
offreIdetab:
class: Etablissement
local: etablissement_id
foreign: id
foreignAlias: OffreEmplois
onDelete: cascade |
Partager