创建数据库trip-user,并创建表userinfo
CREATE TABLE `userinfo` ( `id` bigint NOT NULL AUTO_INCREMENT, `nickname` varchar(255) DEFAULT NULL, `phone` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, `gender` int DEFAULT NULL, `level` int DEFAULT NULL, `city` varchar(255) DEFAULT NULL, `head_img_url` varchar(255) DEFAULT NULL, `info` varchar(255) DEFAULT NULL, `state` int DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `phone` (`phone`,`state`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC;
|