master
Aevann1 2022-09-05 04:00:04 +00:00
parent 1816ce09f7
commit 4231c44269
1 changed files with 3 additions and 11 deletions

View File

@ -527,7 +527,8 @@ ALTER SEQUENCE public.hat_defs_id_seq OWNED BY public.hat_defs.id;
CREATE TABLE public.hats (
hat_id integer NOT NULL,
user_id integer NOT NULL
user_id integer NOT NULL,
equipped boolean
);
@ -964,8 +965,7 @@ CREATE TABLE public.users (
owoify integer,
marsify integer,
is_muted boolean DEFAULT false NOT NULL,
coins_spent_on_hats integer DEFAULT 0 NOT NULL,
equipped_hat_id integer
coins_spent_on_hats integer DEFAULT 0 NOT NULL
);
@ -2457,14 +2457,6 @@ ALTER TABLE ONLY public.users
ADD CONSTRAINT user_referrer_fkey FOREIGN KEY (referred_by) REFERENCES public.users(id);
--
-- Name: users users_equipped_hat_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.users
ADD CONSTRAINT users_equipped_hat_id_fkey FOREIGN KEY (equipped_hat_id) REFERENCES public.hat_defs(id);
--
-- Name: viewers view_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--