|
|
|
@ -46,19 +46,6 @@ CREATE TABLE IF NOT EXISTS Technologie( |
|
|
|
|
PRIMARY KEY (Id) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS PeriodeEssai; |
|
|
|
|
CREATE TABLE IF NOT EXISTS PeriodeEssai( |
|
|
|
|
Id int NOT NULL AUTO_INCREMENT, |
|
|
|
|
StartingDate date NOT NULL, |
|
|
|
|
PlannedEndingDate date NOT NULL, |
|
|
|
|
RealEndingDate date NOT NULL, |
|
|
|
|
Comment varchar(100) NOT NULL, |
|
|
|
|
Issue ENUM('VALIDEE','PROLONGEE_COLLAB','PROLONGEE_APSIDE','ARRETEE_COLLAB','ARRETEE_APSIDE') NOT NULL, |
|
|
|
|
PRIMARY KEY (Id) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS Fonction; |
|
|
|
|
CREATE TABLE IF NOT EXISTS Fonction( |
|
|
|
|
Id int NOT NULL UNIQUE, |
|
|
|
@ -85,6 +72,19 @@ CREATE TABLE IF NOT EXISTS Collaborateur( |
|
|
|
|
PRIMARY KEY (Id) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS PeriodeEssai; |
|
|
|
|
CREATE TABLE IF NOT EXISTS PeriodeEssai( |
|
|
|
|
Id int NOT NULL AUTO_INCREMENT, |
|
|
|
|
StartingDate date NOT NULL, |
|
|
|
|
PlannedEndingDate date NOT NULL, |
|
|
|
|
RealEndingDate date NOT NULL, |
|
|
|
|
Comment varchar(100) NOT NULL, |
|
|
|
|
Issue ENUM('VALIDEE','PROLONGEE_COLLAB','PROLONGEE_APSIDE','ARRETEE_COLLAB','ARRETEE_APSIDE') NOT NULL, |
|
|
|
|
CollaborateurId int NOT NULL, |
|
|
|
|
CONSTRAINT FK_COLLABORATEUR_PERIODEESSAI FOREIGN KEY (CollaborateurId) REFERENCES Collaborateur(Id), |
|
|
|
|
PRIMARY KEY (Id) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS Referencement; |
|
|
|
|
CREATE TABLE IF NOT EXISTS Referencement( |
|
|
|
|
Id int NOT NULL AUTO_INCREMENT, |
|
|
|
|