|
|
|
@ -35,15 +35,14 @@ CREATE TABLE IF NOT EXISTS collaborateur( |
|
|
|
|
Telephone varchar(15) NOT NULL, |
|
|
|
|
PersonalMail varchar(100) NOT NULL, |
|
|
|
|
ApsideMail varchar(100) NOT NULL, |
|
|
|
|
ResignationDate date, |
|
|
|
|
ResignationDate date NOT NULL, |
|
|
|
|
businessunitId int NOT NUll, |
|
|
|
|
ReferrerId int, |
|
|
|
|
ReferrerId int NOT NULL, |
|
|
|
|
CONSTRAINT FK_COLLABORATEUR_BUSINESSUNIT FOREIGN KEY (businessunitId) REFERENCES businessunit(Id), |
|
|
|
|
CONSTRAINT FK_COLLABORATEUR_PARRAIN FOREIGN KEY (ReferrerId) REFERENCES collaborateur(Id), |
|
|
|
|
PRIMARY KEY (Id) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INSERT INTO agence(Id, Name) VALUES (1,'Clermont-Ferrand'); |
|
|
|
|
INSERT INTO businessunit(Id, Name, agenceId) VALUES (1,'Cournon',1); |
|
|
|
|
INSERT INTO collaborateur(Name, FirstName, BirthDate, Gender, Status, ChildrenNumber, Address, Telephone, PersonalMail, |
|
|
|
|