Lines 1638-1644
CREATE TABLE `issues` ( -- information related to check outs or issues
Link Here
|
1638 |
`auto_renew_error` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL, -- automatic renewal error |
1638 |
`auto_renew_error` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL, -- automatic renewal error |
1639 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this record was last touched |
1639 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this record was last touched |
1640 |
`issuedate` datetime default NULL, -- date the item was checked out or issued |
1640 |
`issuedate` datetime default NULL, -- date the item was checked out or issued |
1641 |
`onsite_checkout` int(1) NOT NULL default 0, -- in house use flag |
1641 |
`checkout_type` varchar(80) default NULL, -- checkout type |
1642 |
`note` LONGTEXT default NULL, -- issue note text |
1642 |
`note` LONGTEXT default NULL, -- issue note text |
1643 |
`notedate` datetime default NULL, -- datetime of issue note (yyyy-mm-dd hh:mm::ss) |
1643 |
`notedate` datetime default NULL, -- datetime of issue note (yyyy-mm-dd hh:mm::ss) |
1644 |
`noteseen` int(1) default NULL, -- describes whether checkout note has been seen 1, not been seen 0 or doesn't exist null |
1644 |
`noteseen` int(1) default NULL, -- describes whether checkout note has been seen 1, not been seen 0 or doesn't exist null |
Lines 1649-1655
CREATE TABLE `issues` ( -- information related to check outs or issues
Link Here
|
1649 |
KEY `branchcode_idx` (`branchcode`), |
1649 |
KEY `branchcode_idx` (`branchcode`), |
1650 |
KEY `bordate` (`borrowernumber`,`timestamp`), |
1650 |
KEY `bordate` (`borrowernumber`,`timestamp`), |
1651 |
CONSTRAINT `issues_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE RESTRICT ON UPDATE CASCADE, |
1651 |
CONSTRAINT `issues_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE RESTRICT ON UPDATE CASCADE, |
1652 |
CONSTRAINT `issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE RESTRICT ON UPDATE CASCADE |
1652 |
CONSTRAINT `issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE RESTRICT ON UPDATE CASCADE, |
|
|
1653 |
CONSTRAINT `issues_ctfk` FOREIGN KEY (`checkout_type`) REFERENCES `authorised_values`(`authorised_value`) ON DELETE SET NULL ON UPDATE CASCADE |
1653 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1654 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1654 |
|
1655 |
|
1655 |
-- |
1656 |
-- |
Lines 1670-1676
CREATE TABLE `old_issues` ( -- lists items that were checked out and have been r
Link Here
|
1670 |
`auto_renew_error` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL, -- automatic renewal error |
1671 |
`auto_renew_error` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL, -- automatic renewal error |
1671 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this record was last touched |
1672 |
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this record was last touched |
1672 |
`issuedate` datetime default NULL, -- date the item was checked out or issued |
1673 |
`issuedate` datetime default NULL, -- date the item was checked out or issued |
1673 |
`onsite_checkout` int(1) NOT NULL default 0, -- in house use flag |
1674 |
`checkout_type` varchar(80) default NULL, -- checkout type |
1674 |
`note` LONGTEXT default NULL, -- issue note text |
1675 |
`note` LONGTEXT default NULL, -- issue note text |
1675 |
`notedate` datetime default NULL, -- datetime of issue note (yyyy-mm-dd hh:mm::ss) |
1676 |
`notedate` datetime default NULL, -- datetime of issue note (yyyy-mm-dd hh:mm::ss) |
1676 |
`noteseen` int(1) default NULL, -- describes whether checkout note has been seen 1, not been seen 0 or doesn't exist null |
1677 |
`noteseen` int(1) default NULL, -- describes whether checkout note has been seen 1, not been seen 0 or doesn't exist null |
Lines 1683-1688
CREATE TABLE `old_issues` ( -- lists items that were checked out and have been r
Link Here
|
1683 |
ON DELETE SET NULL ON UPDATE SET NULL, |
1684 |
ON DELETE SET NULL ON UPDATE SET NULL, |
1684 |
CONSTRAINT `old_issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) |
1685 |
CONSTRAINT `old_issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) |
1685 |
ON DELETE SET NULL ON UPDATE SET NULL |
1686 |
ON DELETE SET NULL ON UPDATE SET NULL |
|
|
1687 |
CONSTRAINT `old_issues_ctfk` FOREIGN KEY (`checkout_type`) REFERENCES `authorised_values`(`authorised_value`) |
1688 |
ON DELETE SET NULL ON UPDATE CASCADE |
1689 |
|
1686 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1690 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1687 |
|
1691 |
|
1688 |
-- |
1692 |
-- |
1689 |
- |
|
|