Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions sqlscript/forums/topic.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
DROP TABLE IF EXISTS forums.topic;
CREATE TABLE forums.topic
(
sysid uuid,
nodeId uuid,
userId uuid,
email character varying,
title character varying,
content character varying,
"top" int DEFAULT 0,
good boolean DEFAULT false,
viewCount int DEFAULT 0,
replyCount int DEFAULT 0,
lastReplyUserId uuid,
lastReplyTime timestamp with time zone DEFAULT CURRENT_TIMESTAMP,
createdon timestamp with time zone DEFAULT CURRENT_TIMESTAMP,
deletedon timestamp with time zone DEFAULT CURRENT_TIMESTAMP,
"status" int DEFAULT 0,
PRIMARY KEY (sysid)
);
14 changes: 14 additions & 0 deletions sqlscript/forums/topicNode.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
DROP TABLE IF EXISTS forums.topicNode;
CREATE TABLE forums.topicNode
(
sysid uuid,
parentId uuid,
nodeName character varying,
"name" character varying,
"description" character varying,
"order" int DEFAULT 0,
createdon timestamp with time zone DEFAULT CURRENT_TIMESTAMP,
deletedon timestamp with time zone DEFAULT CURRENT_TIMESTAMP,
"status" int DEFAULT 0,
PRIMARY KEY (sysid)
);
13 changes: 13 additions & 0 deletions sqlscript/forums/topicReply.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DROP TABLE IF EXISTS forums.topicReply;
CREATE TABLE forums.topicReply
(
sysid uuid,
topicId uuid,
userId uuid,
replyEmail character varying,
replyContent character varying,
createdon timestamp with time zone DEFAULT CURRENT_TIMESTAMP,
deletedon timestamp with time zone DEFAULT CURRENT_TIMESTAMP,
"status" int DEFAULT 0,
PRIMARY KEY (sysid)
);