master
Aevann1 2022-10-06 06:10:21 +00:00
parent 3a4aa3f3af
commit b2961c1d99
1 changed files with 29 additions and 0 deletions

View File

@ -561,6 +561,19 @@ CREATE TABLE public.marseys (
);
--
-- Name: media; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.media (
kind character varying(5) NOT NULL,
filename character varying(23) NOT NULL,
user_id integer NOT NULL,
created_utc integer NOT NULL,
size integer NOT NULL
);
--
-- Name: modactions; Type: TABLE; Schema: public; Owner: -
--
@ -1319,6 +1332,14 @@ ALTER TABLE ONLY public.marseys
ADD CONSTRAINT marseys_pkey PRIMARY KEY (name);
--
-- Name: media media_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.media
ADD CONSTRAINT media_pkey PRIMARY KEY (kind, filename);
--
-- Name: modactions modactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@ -2352,6 +2373,14 @@ ALTER TABLE ONLY public.marseys
ADD CONSTRAINT marsey_submitter_fkey FOREIGN KEY (submitter_id) REFERENCES public.users(id);
--
-- Name: media media_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.media
ADD CONSTRAINT media_user_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
--
-- Name: mods mod_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--