modified: SRC/init/table.sql

This commit is contained in:
sidya82 2015-02-15 05:30:29 +01:00
parent 943cb01c24
commit a48a21921e

View File

@ -42,7 +42,7 @@ CREATE TABLE users (
email VARCHAR(50), email VARCHAR(50),
image VARCHAR(255), image VARCHAR(255),
admin INT(1) DEFAULT 0, admin INT(1) DEFAULT 0,
PRIMARY KEY (idreferent) PRIMARY KEY (idusers)
); );
@ -117,12 +117,12 @@ CREATE TABLE assoauteuraoeuvre (
CREATE TABLE listeoeuvre ( CREATE TABLE listeoeuvre (
idlisteoeuvre INT NOT NULL AUTO_INCREMENT, idlisteoeuvre INT NOT NULL AUTO_INCREMENT,
idreferent INT NOT NULL, idusers INT NOT NULL,
nom VARCHAR(50), nom VARCHAR(50),
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 users(idreferent) FOREIGN KEY (idusers) REFERENCES users(idusers)
); );