Commit 938f9ba7 authored by Ismail Merzougui's avatar Ismail Merzougui

Update SQL.txt

parent 62ef0cc1
......@@ -68,15 +68,12 @@ CREATE TABLE EmpruntDocument
code VARCHAR(100) NOT NULL,
Idcarte VARCHAR(100) NOT NULL,
dateEmprunt DATE NOT NULL,
duree TIME NOT NULL,
dateRetour DATE ,
dateLimite DATE NOT NULL ,
etatEmprunt ETAT NOT NULL,
etatRetour ETAT NOT NULL,
PRIMARY KEY (code, Idcarte, dateEmprunt),
FOREIGN KEY(code) REFERENCES Document,
FOREIGN KEY (Idcarte) REFERENCES Adherent,
typeD TypeDoc,
CONSTRAINT DateUnique UNIQUE(dateEmprunt,code),
CONSTRAINT DateUnique2 UNIQUE(dateRetour,code)
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment