forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-02-12 23:00:02 +00:00
parent ac2e06b10f
commit e98deb05ef
1 changed files with 18 additions and 45 deletions

View File

@ -281,8 +281,6 @@ CREATE TABLE public.comments (
edited_utc integer DEFAULT 0 NOT NULL, edited_utc integer DEFAULT 0 NOT NULL,
deleted_utc integer DEFAULT 0 NOT NULL, deleted_utc integer DEFAULT 0 NOT NULL,
is_approved integer DEFAULT 0 NOT NULL, is_approved integer DEFAULT 0 NOT NULL,
author_name character varying(64),
approved_utc integer,
level integer DEFAULT 0 NOT NULL, level integer DEFAULT 0 NOT NULL,
parent_comment_id integer, parent_comment_id integer,
over_18 boolean DEFAULT false NOT NULL, over_18 boolean DEFAULT false NOT NULL,
@ -335,9 +333,8 @@ CREATE TABLE public.commentvotes (
comment_id integer, comment_id integer,
vote_type integer, vote_type integer,
user_id integer, user_id integer,
creation_ip character(64),
app_id integer, app_id integer,
"real" boolean "real" boolean DEFAULT true NOT NULL
); );
@ -613,7 +610,6 @@ CREATE TABLE public.submissions (
over_18 boolean DEFAULT false NOT NULL, over_18 boolean DEFAULT false NOT NULL,
distinguish_level integer DEFAULT 0 NOT NULL, distinguish_level integer DEFAULT 0 NOT NULL,
deleted_utc integer DEFAULT 0 NOT NULL, deleted_utc integer DEFAULT 0 NOT NULL,
domain_ref integer,
is_approved integer DEFAULT 0 NOT NULL, is_approved integer DEFAULT 0 NOT NULL,
edited_utc integer DEFAULT 0 NOT NULL, edited_utc integer DEFAULT 0 NOT NULL,
is_pinned boolean DEFAULT false NOT NULL, is_pinned boolean DEFAULT false NOT NULL,
@ -684,8 +680,7 @@ CREATE TABLE public.subs (
CREATE TABLE public.subscriptions ( CREATE TABLE public.subscriptions (
id integer NOT NULL, id integer NOT NULL,
user_id integer, user_id integer,
board_id integer, submission_id integer DEFAULT 0 NOT NULL
submission_id integer
); );
@ -749,8 +744,8 @@ CREATE TABLE public.users (
username character varying(255) NOT NULL, username character varying(255) NOT NULL,
email character varying(255), email character varying(255),
passhash character varying(255) NOT NULL, passhash character varying(255) NOT NULL,
created_utc integer NOT NULL, created_utc integer DEFAULT 0 NOT NULL,
admin_level integer, admin_level integer DEFAULT 0 NOT NULL,
over_18 boolean, over_18 boolean,
is_activated boolean, is_activated boolean,
bio character varying(1500), bio character varying(1500),
@ -794,26 +789,26 @@ CREATE TABLE public.users (
coins integer, coins integer,
agendaposter boolean, agendaposter boolean,
agendaposter_expires_utc integer DEFAULT 0, agendaposter_expires_utc integer DEFAULT 0,
suicide_utc integer, suicide_utc integer DEFAULT 0 NOT NULL,
post_count integer, post_count integer DEFAULT 0 NOT NULL,
comment_count integer, comment_count integer DEFAULT 0 NOT NULL,
highres character varying(60), highres character varying(60),
rent_utc integer, rent_utc integer DEFAULT 0 NOT NULL,
patron integer, patron integer DEFAULT 0 NOT NULL,
controversial boolean, controversial boolean,
background character varying(20), background character varying(20),
verified character varying(20), verified character varying(20),
fail_utc integer, fail_utc integer DEFAULT 0 NOT NULL,
steal_utc integer, steal_utc integer DEFAULT 0 NOT NULL,
fail2_utc integer, fail2_utc integer DEFAULT 0 NOT NULL,
cardview boolean, cardview boolean,
received_award_count integer, received_award_count integer DEFAULT 0 NOT NULL,
highlightcomments boolean, highlightcomments boolean,
nitter boolean, nitter boolean,
truecoins integer, truecoins integer,
club_allowed boolean DEFAULT false, club_allowed boolean DEFAULT false,
frontsize integer, frontsize integer,
coins_spent integer, coins_spent integer DEFAULT 0 NOT NULL,
procoins integer, procoins integer,
mute boolean, mute boolean,
unmutable boolean, unmutable boolean,
@ -834,10 +829,10 @@ CREATE TABLE public.users (
teddit boolean, teddit boolean,
bird integer, bird integer,
fish boolean, fish boolean,
lootboxes_bought integer, lootboxes_bought integer DEFAULT 0 NOT NULL,
progressivestack integer, progressivestack integer,
winnings integer, winnings integer DEFAULT 0 NOT NULL,
patron_utc integer, patron_utc integer DEFAULT 0 NOT NULL,
rehab integer, rehab integer,
nwordpass boolean, nwordpass boolean,
house character varying(8), house character varying(8),
@ -906,9 +901,8 @@ CREATE TABLE public.votes (
user_id integer NOT NULL, user_id integer NOT NULL,
submission_id integer, submission_id integer,
vote_type integer, vote_type integer,
creation_ip character(64),
app_id integer, app_id integer,
"real" boolean "real" boolean DEFAULT true NOT NULL
); );
@ -1539,13 +1533,6 @@ CREATE INDEX cvote_user_index ON public.commentvotes USING btree (user_id);
CREATE INDEX discord_id_idx ON public.users USING btree (discord_id); CREATE INDEX discord_id_idx ON public.users USING btree (discord_id);
--
-- Name: domain_ref_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX domain_ref_idx ON public.submissions USING btree (domain_ref);
-- --
-- Name: domains_domain_trgm_idx; Type: INDEX; Schema: public; Owner: - -- Name: domains_domain_trgm_idx; Type: INDEX; Schema: public; Owner: -
-- --
@ -1707,13 +1694,6 @@ CREATE INDEX sub_user_index ON public.subscriptions USING btree (user_id);
CREATE INDEX subimssion_binary_group_idx ON public.submissions USING btree (is_banned, deleted_utc, over_18); CREATE INDEX subimssion_binary_group_idx ON public.submissions USING btree (is_banned, deleted_utc, over_18);
--
-- Name: submission_domainref_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX submission_domainref_index ON public.submissions USING btree (domain_ref);
-- --
-- Name: submission_isbanned_idx; Type: INDEX; Schema: public; Owner: - -- Name: submission_isbanned_idx; Type: INDEX; Schema: public; Owner: -
-- --
@ -1770,13 +1750,6 @@ CREATE INDEX submissions_over18_index ON public.submissions USING btree (over_18
CREATE INDEX subs_idx ON public.subs USING btree (name); CREATE INDEX subs_idx ON public.subs USING btree (name);
--
-- Name: subscription_board_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX subscription_board_index ON public.subscriptions USING btree (board_id);
-- --
-- Name: subscription_user_index; Type: INDEX; Schema: public; Owner: - -- Name: subscription_user_index; Type: INDEX; Schema: public; Owner: -
-- --