Bug 12648: Add some documentation on the kohastructure.sql file

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Tomás Cohen Arazi 2015-03-11 11:59:03 -03:00
parent 855c8f47b7
commit 39a03494d8

View file

@ -3093,9 +3093,9 @@ CREATE TABLE `aqorders` ( -- information related to the basket line items
-- --
DROP TABLE IF EXISTS `aqorder_users`; DROP TABLE IF EXISTS `aqorder_users`;
CREATE TABLE aqorder_users ( CREATE TABLE aqorder_users ( -- Mapping orders to patrons for notification sending
ordernumber int(11) NOT NULL, ordernumber int(11) NOT NULL, -- the order this patrons receive notifications from (aqorders.ordernumber)
borrowernumber int(11) NOT NULL, borrowernumber int(11) NOT NULL, -- the borrowernumber for the patron receiving notifications for this order (borrowers.borrowernumber)
PRIMARY KEY (ordernumber, borrowernumber), PRIMARY KEY (ordernumber, borrowernumber),
CONSTRAINT aqorder_users_ibfk_1 FOREIGN KEY (ordernumber) REFERENCES aqorders (ordernumber) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT aqorder_users_ibfk_1 FOREIGN KEY (ordernumber) REFERENCES aqorders (ordernumber) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT aqorder_users_ibfk_2 FOREIGN KEY (borrowernumber) REFERENCES borrowers (borrowernumber) ON DELETE CASCADE ON UPDATE CASCADE CONSTRAINT aqorder_users_ibfk_2 FOREIGN KEY (borrowernumber) REFERENCES borrowers (borrowernumber) ON DELETE CASCADE ON UPDATE CASCADE