Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
zrm99 committed Jul 20, 2020
1 parent fe17ed5 commit 56bec66
Show file tree
Hide file tree
Showing 51 changed files with 11,325 additions and 0 deletions.
54 changes: 54 additions & 0 deletions Nodejs/initial.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
CREATE TABLE "t_miniverses" (
"name" text,
"summary" text,
"date" timestamptz,
"follower_count" bigint,
"follower_names" text [],
"creator" text,
"moderators" text [],
"encoded_uri" text,
"miniverse_type" text
);

CREATE TABLE "t_replies" (
"reply_content" text,
"creator" text,
"creation_date" timestamptz,
"miniverse" text,
"reply_id" bigint,
"topic_id" bigint
);

CREATE TABLE "t_topics" (
"title" text,
"descriptor" text,
"creator" text,
"miniverse" text,
"creation_date" timestamptz,
"topic_id" bigint
);

CREATE TABLE "t_users" (
"username" text,
"password_hash" text,
"date_created" timestamptz,
"ip_address" text,
"profile_data" text,
"following_names" text [],
"follower_names" text [],
"follower_count" bigint,
"bio" text DEFAULT('no bio'),
"role" text
);

CREATE TABLE "session" (
"sid" varchar NOT NULL COLLATE "default",
"sess" json NOT NULL,
"expire" timestamp(6) NOT NULL
)

WITH (OIDS=FALSE);

ALTER TABLE "session" ADD CONSTRAINT "session_pkey" PRIMARY KEY ("sid") NOT DEFERRABLE INITIALLY IMMEDIATE;

CREATE INDEX "IDX_session_expire" ON "session" ("expire");
Loading

0 comments on commit 56bec66

Please sign in to comment.