Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE `notification_alert` (
- `alert_id` int(11) NOT NULL AUTO_INCREMENT,
- `text` varchar(512) NOT NULL,
- `satisfied_by_any` int(1) NOT NULL DEFAULT '0',
- `alert_read` int(1) NOT NULL DEFAULT '0',
- `date_to_expire` datetime DEFAULT NULL,
- `creator` int(11) NOT NULL,
- `date_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `changed_by` int(11) DEFAULT NULL,
- `date_changed` datetime DEFAULT NULL,
- `uuid` char(38) NOT NULL,
- PRIMARY KEY (`alert_id`),
- UNIQUE KEY `notification_alert_uuid_index` (`uuid`),
- KEY `alert_creator` (`creator`),
- KEY `user_who_changed_alert` (`changed_by`),
- KEY `alert_date_to_expire_idx` (`date_to_expire`),
- CONSTRAINT `alert_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`),
- CONSTRAINT `user_who_changed_alert` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
Advertisement
Add Comment
Please, Sign In to add comment