github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/schema/mysql/query_users.sql (about) 1 CREATE TABLE `users`( 2 `uid` int not null AUTO_INCREMENT, 3 `name` varchar(100) not null, 4 `password` varchar(100) not null, 5 `salt` varchar(80) DEFAULT '' not null, 6 `group` int not null, 7 `active` boolean DEFAULT 0 not null, 8 `is_super_admin` boolean DEFAULT 0 not null, 9 `createdAt` datetime not null, 10 `lastActiveAt` datetime not null, 11 `session` varchar(200) DEFAULT '' not null, 12 `last_ip` varchar(200) DEFAULT '' not null, 13 `profile_comments` int DEFAULT 0 not null, 14 `who_can_convo` int DEFAULT 0 not null, 15 `enable_embeds` int DEFAULT -1 not null, 16 `email` varchar(200) DEFAULT '' not null, 17 `avatar` varchar(100) DEFAULT '' not null, 18 `message` text not null, 19 `url_prefix` varchar(20) DEFAULT '' not null, 20 `url_name` varchar(100) DEFAULT '' not null, 21 `level` smallint DEFAULT 0 not null, 22 `score` int DEFAULT 0 not null, 23 `posts` int DEFAULT 0 not null, 24 `bigposts` int DEFAULT 0 not null, 25 `megaposts` int DEFAULT 0 not null, 26 `topics` int DEFAULT 0 not null, 27 `liked` int DEFAULT 0 not null, 28 `oldestItemLikedCreatedAt` datetime not null, 29 `lastLiked` datetime not null, 30 `temp_group` int DEFAULT 0 not null, 31 primary key(`uid`), 32 unique(`name`) 33 ) CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;