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

     1  CREATE TABLE "topics" (
     2  	`tid` serial not null,
     3  	`title` varchar (100) not null,
     4  	`content` text not null,
     5  	`parsed_content` text not null,
     6  	`createdAt` timestamp not null,
     7  	`lastReplyAt` timestamp not null,
     8  	`lastReplyBy` int not null,
     9  	`lastReplyID` int DEFAULT 0 not null,
    10  	`createdBy` int not null,
    11  	`is_closed` boolean DEFAULT 0 not null,
    12  	`sticky` boolean DEFAULT 0 not null,
    13  	`parentID` int DEFAULT 2 not null,
    14  	`ip` varchar (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` varchar (100) DEFAULT '' not null,
    23  	`poll` int DEFAULT 0 not null,
    24  	`data` varchar (200) DEFAULT '' not null,
    25  	primary key(`tid`),
    26  	fulltext key(`title`),
    27  	fulltext key(`content`)
    28  );