Skip to content

Commit

Permalink
Updated schema
Browse files Browse the repository at this point in the history
  • Loading branch information
waxpancake committed Jun 4, 2016
1 parent fa7e598 commit 4cae92e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# Host: 127.0.0.1 (MySQL 5.6.20)
# Database: upcoming
# Generation Time: 2016-05-31 01:50:25 +0000
# Generation Time: 2016-06-04 16:42:11 +0000
# ************************************************************


Expand Down Expand Up @@ -178,13 +178,29 @@ CREATE TABLE `watchlist` (
`event_id` varchar(20) DEFAULT NULL,
`user_id` varchar(20) DEFAULT NULL,
`status` enum('watch','attend') DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `watchlist_event_user` (`event_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;



# Dump of table watchlist_copy
# ------------------------------------------------------------

DROP TABLE IF EXISTS `watchlist_copy`;

CREATE TABLE `watchlist_copy` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`event_id` varchar(20) DEFAULT NULL,
`user_id` varchar(20) DEFAULT NULL,
`status` enum('watch','attend') DEFAULT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;




/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
Expand Down

0 comments on commit 4cae92e

Please sign in to comment.