112 lines
2.2 KiB
MySQL
Raw Normal View History

2025-03-14 04:22:14 +10:00
--
-- PostgreSQL database dump
--
-- Dumped from database version 17.3 (Debian 17.3-3.pgdg120+1)
-- Dumped by pg_dump version 17.3 (Debian 17.3-3.pgdg120+1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET transaction_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: useractions; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE public.useractions AS ENUM (
'FIRST_ENTRY',
'REGISTRATION',
'LOGIN',
'LOGOUT',
'CREATE_THEME',
'ENTRY_THEME',
'DELETE_THEME',
'WRITE_MESSAGE'
);
ALTER TYPE public.useractions OWNER TO postgres;
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: log; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.log (
id integer NOT NULL,
user_id integer,
2025-03-14 04:22:14 +10:00
datetime timestamp with time zone NOT NULL,
action public.useractions NOT NULL,
object_id integer,
2025-03-14 05:05:50 +10:00
success_response boolean NOT NULL
2025-03-14 04:22:14 +10:00
);
ALTER TABLE public.log OWNER TO postgres;
--
-- Name: log_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.log_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE public.log_id_seq OWNER TO postgres;
--
-- Name: log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.log_id_seq OWNED BY public.log.id;
--
-- Name: log id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.log ALTER COLUMN id SET DEFAULT nextval('public.log_id_seq'::regclass);
2025-03-14 05:05:50 +10:00
2025-03-14 04:22:14 +10:00
--
-- Data for Name: log; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- Name: log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.log_id_seq', 1, true);
2025-03-14 04:22:14 +10:00
--
-- Name: log log_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.log
ADD CONSTRAINT log_pkey PRIMARY KEY (id);
--
-- PostgreSQL database dump complete
--