Lines 2672-2677
DROP TABLE IF EXISTS `accountlines`;
Link Here
|
2672 |
CREATE TABLE `accountlines` ( |
2672 |
CREATE TABLE `accountlines` ( |
2673 |
`accountlines_id` int(11) NOT NULL AUTO_INCREMENT, |
2673 |
`accountlines_id` int(11) NOT NULL AUTO_INCREMENT, |
2674 |
`issue_id` int(11) NULL DEFAULT NULL, |
2674 |
`issue_id` int(11) NULL DEFAULT NULL, |
|
|
2675 |
`old_issue_id` int(11) NULL DEFAULT NULL, |
2675 |
`borrowernumber` int(11) DEFAULT NULL, |
2676 |
`borrowernumber` int(11) DEFAULT NULL, |
2676 |
`itemnumber` int(11) default NULL, |
2677 |
`itemnumber` int(11) default NULL, |
2677 |
`date` date default NULL, |
2678 |
`date` date default NULL, |
Lines 2691-2699
CREATE TABLE `accountlines` (
Link Here
|
2691 |
KEY `timeidx` (`timestamp`), |
2692 |
KEY `timeidx` (`timestamp`), |
2692 |
KEY `itemnumber` (`itemnumber`), |
2693 |
KEY `itemnumber` (`itemnumber`), |
2693 |
KEY `branchcode` (`branchcode`), |
2694 |
KEY `branchcode` (`branchcode`), |
|
|
2695 |
KEY `issue_id` (`issue_id`), |
2696 |
KEY `old_issue_id` (`old_issue_id`), |
2694 |
KEY `manager_id` (`manager_id`), |
2697 |
KEY `manager_id` (`manager_id`), |
2695 |
CONSTRAINT `accountlines_ibfk_borrowers` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE, |
2698 |
CONSTRAINT `accountlines_ibfk_borrowers` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE, |
2696 |
CONSTRAINT `accountlines_ibfk_items` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE SET NULL ON UPDATE CASCADE, |
2699 |
CONSTRAINT `accountlines_ibfk_items` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE SET NULL ON UPDATE CASCADE, |
|
|
2700 |
CONSTRAINT `accountlines_ibfk_issues` FOREIGN KEY (`issue_id`) REFERENCES `issues` (`issue_id`) ON DELETE SET NULL ON UPDATE CASCADE, |
2701 |
CONSTRAINT `accountlines_ibfk_old_issues` FOREIGN KEY (`old_issue_id`) REFERENCES `old_issues` (`issue_id`) ON DELETE SET NULL ON UPDATE CASCADE, |
2697 |
CONSTRAINT `accountlines_ibfk_borrowers_2` FOREIGN KEY (`manager_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE, |
2702 |
CONSTRAINT `accountlines_ibfk_borrowers_2` FOREIGN KEY (`manager_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE, |
2698 |
CONSTRAINT `accountlines_ibfk_branches` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE SET NULL ON UPDATE CASCADE |
2703 |
CONSTRAINT `accountlines_ibfk_branches` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE SET NULL ON UPDATE CASCADE |
2699 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
2704 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
2700 |
- |
|
|