github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/schema/pgsql/query_users.sql (about)

     1  CREATE TABLE "users" (
     2  	`uid` serial not null,
     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` timestamp not null,
    10  	`lastActiveAt` timestamp 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` timestamp not null,
    29  	`lastLiked` timestamp not null,
    30  	`temp_group` int DEFAULT 0 not null,
    31  	primary key(`uid`),
    32  	unique(`name`)
    33  );