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

     1  CREATE TABLE [topics] (
     2  	[tid] int not null IDENTITY,
     3  	[title] nvarchar (100) not null,
     4  	[content] nvarchar (MAX) not null,
     5  	[parsed_content] nvarchar (MAX) not null,
     6  	[createdAt] datetime not null,
     7  	[lastReplyAt] datetime not null,
     8  	[lastReplyBy] int not null,
     9  	[lastReplyID] int DEFAULT 0 not null,
    10  	[createdBy] int not null,
    11  	[is_closed] bit DEFAULT 0 not null,
    12  	[sticky] bit DEFAULT 0 not null,
    13  	[parentID] int DEFAULT 2 not null,
    14  	[ip] nvarchar (200) DEFAULT '' not null,
    15  	[postCount] int DEFAULT 1 not null,
    16  	[likeCount] int DEFAULT 0 not null,
    17  	[attachCount] int DEFAULT 0 not null,
    18  	[words] int DEFAULT 0 not null,
    19  	[views] int DEFAULT 0 not null,
    20  	[weekEvenViews] int DEFAULT 0 not null,
    21  	[weekOddViews] int DEFAULT 0 not null,
    22  	[css_class] nvarchar (100) DEFAULT '' not null,
    23  	[poll] int DEFAULT 0 not null,
    24  	[data] nvarchar (200) DEFAULT '' not null,
    25  	primary key([tid]),
    26  	fulltext key([title]),
    27  	fulltext key([content])
    28  );