Lines 3038-3044
CREATE TABLE `aqorders_items` ( -- information on items entered in the acquisiti
Link Here
|
3038 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this order item was last touched |
3038 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this order item was last touched |
3039 |
PRIMARY KEY (`itemnumber`), |
3039 |
PRIMARY KEY (`itemnumber`), |
3040 |
KEY `ordernumber` (`ordernumber`), |
3040 |
KEY `ordernumber` (`ordernumber`), |
3041 |
CONSTRAINT aqorders_items_ibfk_1 FOREIGN KEY (ordernumber) REFERENCES aqorders (ordernumber) ON DELETE CASCADE ON UPDATE CASCADE |
3041 |
CONSTRAINT aqorders_items_ibfk_1 FOREIGN KEY (ordernumber) REFERENCES aqorders (ordernumber) ON DELETE CASCADE ON UPDATE CASCADE, |
|
|
3042 |
CONSTRAINT aqorders_items_ibfk_2 FOREIGN KEY (itemnumber) REFERENCES items (itemnumber) ON DELETE CASCADE ON UPDATE CASCADE |
3042 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
3043 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
3043 |
|
3044 |
|
3044 |
|
3045 |
|