fix des NOT NULL manquants dans l'init_db

develop
Clement FERRERE 2 years ago
parent 4618d3d2c8
commit a55f86bbda
  1. 5
      db/init_db.sql

@ -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,

Loading…
Cancel
Save