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