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
| Site:
columns:
id: { type: integer, notnull: true, primary: true, autoincrement: true }
nom: { type: string(50), notnull: true, unique: true }
image: { type: string(100) }
adresse: { type: string(100), notnull: true, unique: true }
lien_mort: { type: boolean, notnull: true }
description: { type: string(4000) }
note: { type: float, notnull: true }
nb_fois_note: { type: integer, notnull: true }
nb_clic: { type: integer, notnull: true }
relations:
Classes: { class: Classe, local: id_site, foreign: id_classe, refClass: InterSiteClasse, onDelete: CASCADE }
Classe:
columns:
id: { type: integer, notnull: true, primary: true, autoincrement: true }
nom: { type: string(30), notnull: true, unique:true }
relations:
SitesClasse: { class: Site, local: id_classe, foreign: id_site, refClass: InterSiteClasse, onDelete: CASCADE }
InterSiteClasse:
columns:
id_site: { type: integer, notnull: true, primary: true }
id_classe: { type: integer, notnull: true, primary: true } |
Partager