1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
--------------- TABLES REFERENCES_CMD ---------------------------
CREATE TABLE REFERENCES_CMD(
reference_id INTEGER IDENTITY (1, 1) NOT NULL,
designation VARCHAR(20) NOT NULL,
lot_num VARCHAR(20) NULL,
CONSTRAINT REFERENCES_CMD_reference_id_pk PRIMARY KEY (reference_id));
-------------------- TABLES TESTS --------------------------------
CREATE TABLE TESTS(
test_id INTEGER IDENTITY (1, 1) NOT NULL,
bioburden VARCHAR(20) NULL,
gravimetrie VARCHAR(20) NULL,
sablage VARCHAR(20) NULL,
sterilisation VARCHAR(20) NULL,
CONSTRAINT TESTS_test_id_pk PRIMARY KEY (test_id),
CONSTRAINT TESTS_reference_id_fk FOREIGN KEY (reference_id) REFERENCES REFERENCES_CMD (reference_id)
); |
Partager