From 385b03a163d95640ff29f4cd1e587a80f2e0499a Mon Sep 17 00:00:00 2001 From: "heavyrain.lee" Date: Wed, 3 Jul 2019 08:04:07 +0800 Subject: [PATCH] add session table --- broker/migrate/mysql/V13__create_session_table.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 broker/migrate/mysql/V13__create_session_table.sql diff --git a/broker/migrate/mysql/V13__create_session_table.sql b/broker/migrate/mysql/V13__create_session_table.sql new file mode 100755 index 00000000..90f8229e --- /dev/null +++ b/broker/migrate/mysql/V13__create_session_table.sql @@ -0,0 +1,14 @@ + +DROP TABLE IF EXISTS `t_session`; +CREATE TABLE `t_session` ( + `row_id` varchar(50) not null primary key, + `del_flag` tinyint(1) default 0 null, + `create_time` timestamp null, + `update_time` timestamp null, + `expire_time` timestamp null, + `user_id` int null, + constraint `t_session_pk_2` unique (`user_id`, `expire_time`) +) +ENGINE = InnoDB +DEFAULT CHARACTER SET = utf8mb4 +COLLATE = utf8mb4_unicode_ci;