moshonk

show create table notification_alert result

Jun 3rd, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.88 KB | None | 0 0
  1. CREATE TABLE `notification_alert` (
  2.   `alert_id` int(11) NOT NULL AUTO_INCREMENT,
  3.   `text` varchar(512) NOT NULL,
  4.   `satisfied_by_any` int(1) NOT NULL DEFAULT '0',
  5.   `alert_read` int(1) NOT NULL DEFAULT '0',
  6.   `date_to_expire` datetime DEFAULT NULL,
  7.   `creator` int(11) NOT NULL,
  8.   `date_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  9.   `changed_by` int(11) DEFAULT NULL,
  10.   `date_changed` datetime DEFAULT NULL,
  11.   `uuid` char(38) NOT NULL,
  12.   PRIMARY KEY (`alert_id`),
  13.   UNIQUE KEY `notification_alert_uuid_index` (`uuid`),
  14.   KEY `alert_creator` (`creator`),
  15.   KEY `user_who_changed_alert` (`changed_by`),
  16.   KEY `alert_date_to_expire_idx` (`date_to_expire`),
  17.   CONSTRAINT `alert_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`),
  18.   CONSTRAINT `user_who_changed_alert` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`)
  19. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
Advertisement
Add Comment
Please, Sign In to add comment