diff --git a/DB/line.sql b/DB/line.sql index c79ad5c6..0b6e2b96 100644 --- a/DB/line.sql +++ b/DB/line.sql @@ -24,3 +24,14 @@ CREATE TABLE IF NOT EXISTS `line_config` ( `updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; + + +CREATE TABLE `line_notify_connections` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `user_id` INT(12) NOT NULL, + `access_token` VARCHAR(255) NOT NULL, + `status` ENUM('active', 'inactive') NOT NULL DEFAULT 'active', + `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + `updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8;