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