chore: Embed unit test data (#1812)

* Embed unit test data

* Add testdata

Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
anqiansong
2022-04-21 21:49:09 +08:00
committed by GitHub
parent 14bf2f33f7
commit 16c61c6657
27 changed files with 388 additions and 315 deletions

View File

@@ -0,0 +1,15 @@
CREATE TABLE `test_user`
(
`id` bigint NOT NULL AUTO_INCREMENT,
`mobile` varchar(255) COLLATE utf8mb4_bin NOT NULL comment '手\t机 号',
`class` bigint NOT NULL comment '班级',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL comment '
',
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP comment '创建\r时间',
`update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `mobile_unique` (`mobile`),
UNIQUE KEY `class_name_unique` (`class`,`name`),
KEY `create_index` (`create_time`),
KEY `name_index` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;