-
Notifications
You must be signed in to change notification settings - Fork 7
/
mysql_insert.sql
20 lines (18 loc) · 1.01 KB
/
mysql_insert.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CREATE DATABASE `trade` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE TABLE `account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`platform_id` bigint(20) NOT NULL,
`username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`is_enable` tinyint(1) NOT NULL,
`role` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
`expired_at` datetime(6) NOT NULL,
`created_at` datetime(6) NOT NULL,
`updated_at` datetime(6) NOT NULL,
`radius_password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `account_username_cfe70fab_uniq` (`username`),
UNIQUE KEY `account_user_id_platform_id_88a2cba9_uniq` (`user_id`,`platform_id`)
) ENGINE=InnoDB AUTO_INCREMENT=194 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT INTO `account` VALUES (1,1351172106029633536,1,'zhouliying','zhouliying',1,'pay_user','2031-04-17 00:00:00','2018-11-03 00:00:00','2099-09-01 00:00:00','zhouliying');