Edit database

This commit is contained in:
Glenn Petter Pettersen 2019-04-26 02:19:24 +02:00
parent 58df1c2dcb
commit e49c8624ed

View File

@ -5160,10 +5160,11 @@ CREATE TABLE Services
Telefonnummer CHAR(20), Telefonnummer CHAR(20),
HusID INT(11), HusID INT(11),
BrukerID INT(11), BrukerID INT(11),
Hjemmeside CHAR(64),
PRIMARY KEY (ServiceID), PRIMARY KEY (ServiceID),
CONSTRAINT FOREIGN KEY (HusID) REFERENCES Husstand(HusID), CONSTRAINT FOREIGN KEY (HusID) REFERENCES Husstand(HusID),
CONSTRAINT FOREIGN KEY (BrukerID) REFERENCES Bruker(BrukerID) CONSTRAINT FOREIGN KEY (BrukerID) REFERENCES Bruker(BrukerID)
); );
INSERT INTO Services VALUES INSERT INTO Services VALUES
(1,'Mulle Bygg og Karsk','Snekker','Mulle Mekk','99887766',2,2); (1,'Mulle Bygg og Karsk','Snekker','Mulle Mekk','99887766',2,2,'https://www.mullebygg.no/');