Lines 3776-3781
CREATE TABLE `hold_fill_targets` (
Link Here
|
3776 |
REFERENCES `branches` (`branchcode`) ON DELETE CASCADE ON UPDATE CASCADE |
3776 |
REFERENCES `branches` (`branchcode`) ON DELETE CASCADE ON UPDATE CASCADE |
3777 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
3777 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
3778 |
|
3778 |
|
|
|
3779 |
-- |
3780 |
-- Table structure for table 'library_groups' |
3781 |
-- |
3782 |
|
3783 |
CREATE TABLE library_groups ( |
3784 |
id INT(11) NOT NULL auto_increment, -- unique id for each group |
3785 |
parent_id INT(11) NULL DEFAULT NULL, -- if this is a child group, the id of the parent group |
3786 |
branchcode VARCHAR(10) NULL DEFAULT NULL, -- The branchcode of a branch belonging to the parent group |
3787 |
title VARCHAR(100) NULL DEFAULT NULL, -- Short description of the goup |
3788 |
description TEXT NULL DEFAULT NULL, -- Longer explanation of the group, if necessary |
3789 |
created_on DATETIME NOT NULL, -- Date and time of creation |
3790 |
updated_on DATETIME NULL DEFAULT NULL, -- Date and time of last |
3791 |
PRIMARY KEY id ( id ), |
3792 |
FOREIGN KEY (parent_id) REFERENCES library_groups(id) ON UPDATE CASCADE ON DELETE CASCADE, |
3793 |
FOREIGN KEY (branchcode) REFERENCES branches(branchcode) ON UPDATE CASCADE ON DELETE CASCADE |
3794 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
3795 |
|
3779 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
3796 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
3780 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
3797 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
3781 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
3798 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
3782 |
- |
|
|