Lines 2694-2700
CREATE TABLE `messages` ( -- circulation messages left via the patron's check ou
Link Here
|
2694 |
`message_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- the date and time the message was written |
2694 |
`message_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- the date and time the message was written |
2695 |
`manager_id` int(11) default NULL, -- creator of message |
2695 |
`manager_id` int(11) default NULL, -- creator of message |
2696 |
PRIMARY KEY (`message_id`), |
2696 |
PRIMARY KEY (`message_id`), |
2697 |
CONSTRAINT `messages_ibfk_1` FOREIGN KEY (`manager_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL |
2697 |
CONSTRAINT `messages_ibfk_1` FOREIGN KEY (`manager_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL, |
|
|
2698 |
CONSTRAINT `messages_borrowernumber` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE |
2698 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
2699 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
2699 |
|
2700 |
|
2700 |
-- |
2701 |
-- |
2701 |
- |
|
|