You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
474 B
13 lines
474 B
CREATE DATABASE IF NOT EXISTS test;
|
|
|
|
USE test;
|
|
|
|
CREATE TABLE IF NOT EXISTS `user` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`user_id` bigint(20) NOT NULL,
|
|
`user_name` varchar(64) COLLATE utf8mb4_general_ci NOT NULL,
|
|
`user_gender` tinyint(4) NOT NULL DEFAULT '0',
|
|
`user_score` bigint(20) NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `idx_user_id` (`user_id`) USING BTREE
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; |