modified: SRC/init/table.sql
This commit is contained in:
parent
1f31fbce45
commit
c4a24fa7b2
@ -12,7 +12,7 @@ DROP TABLE IF EXISTS technique;
|
|||||||
DROP TABLE IF EXISTS domaine;
|
DROP TABLE IF EXISTS domaine;
|
||||||
DROP TABLE IF EXISTS matiere;
|
DROP TABLE IF EXISTS matiere;
|
||||||
DROP TABLE IF EXISTS datation;
|
DROP TABLE IF EXISTS datation;
|
||||||
DROP TABLE IF EXISTS referent;
|
DROP TABLE IF EXISTS users;
|
||||||
DROP TABLE IF EXISTS niveau;
|
DROP TABLE IF EXISTS niveau;
|
||||||
DROP TABLE IF EXISTS jeu;
|
DROP TABLE IF EXISTS jeu;
|
||||||
|
|
||||||
@ -35,12 +35,13 @@ CREATE TABLE niveau (
|
|||||||
FOREIGN KEY (idjeu) REFERENCES jeu(idjeu)
|
FOREIGN KEY (idjeu) REFERENCES jeu(idjeu)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE referent (
|
CREATE TABLE users (
|
||||||
idreferent INT NOT NULL AUTO_INCREMENT,
|
idusers INT NOT NULL AUTO_INCREMENT,
|
||||||
nom VARCHAR(50),
|
name VARCHAR(50),
|
||||||
mdp VARCHAR(32),
|
password VARCHAR(255),
|
||||||
email VARCHAR(50),
|
email VARCHAR(50),
|
||||||
image VARCHAR(255),
|
image VARCHAR(255),
|
||||||
|
admin INT(1) DEFAULT 0,
|
||||||
PRIMARY KEY (idreferent)
|
PRIMARY KEY (idreferent)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -121,7 +122,7 @@ CREATE TABLE listeoeuvre (
|
|||||||
etat INT(1) DEFAULT 0,
|
etat INT(1) DEFAULT 0,
|
||||||
dateCreation TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
dateCreation TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (idlisteoeuvre),
|
PRIMARY KEY (idlisteoeuvre),
|
||||||
FOREIGN KEY (idreferent) REFERENCES referent(idreferent)
|
FOREIGN KEY (idreferent) REFERENCES users(idreferent)
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user