|
| 1 | +SET statement_timeout = 0; |
| 2 | +SET lock_timeout = 0; |
| 3 | +SET idle_in_transaction_session_timeout = 0; |
| 4 | +SET client_encoding = 'UTF8'; |
| 5 | +SET standard_conforming_strings = on; |
| 6 | +SELECT pg_catalog.set_config('search_path', '', false); |
| 7 | +SET check_function_bodies = false; |
| 8 | +SET xmloption = content; |
| 9 | +SET client_min_messages = warning; |
| 10 | +SET row_security = off; |
| 11 | + |
| 12 | +SET default_tablespace = ''; |
| 13 | + |
| 14 | +SET default_table_access_method = heap; |
| 15 | + |
| 16 | +-- |
| 17 | +-- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: - |
| 18 | +-- |
| 19 | + |
| 20 | +CREATE TABLE public.ar_internal_metadata ( |
| 21 | + key character varying NOT NULL, |
| 22 | + value character varying, |
| 23 | + created_at timestamp(6) without time zone NOT NULL, |
| 24 | + updated_at timestamp(6) without time zone NOT NULL |
| 25 | +); |
| 26 | + |
| 27 | + |
| 28 | +-- |
| 29 | +-- Name: languages; Type: TABLE; Schema: public; Owner: - |
| 30 | +-- |
| 31 | + |
| 32 | +CREATE TABLE public.languages ( |
| 33 | + id bigint NOT NULL, |
| 34 | + name character varying, |
| 35 | + file_share_folder character varying, |
| 36 | + created_at timestamp(6) without time zone NOT NULL, |
| 37 | + updated_at timestamp(6) without time zone NOT NULL |
| 38 | +); |
| 39 | + |
| 40 | + |
| 41 | +-- |
| 42 | +-- Name: languages_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
| 43 | +-- |
| 44 | + |
| 45 | +CREATE SEQUENCE public.languages_id_seq |
| 46 | + START WITH 1 |
| 47 | + INCREMENT BY 1 |
| 48 | + NO MINVALUE |
| 49 | + NO MAXVALUE |
| 50 | + CACHE 1; |
| 51 | + |
| 52 | + |
| 53 | +-- |
| 54 | +-- Name: languages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
| 55 | +-- |
| 56 | + |
| 57 | +ALTER SEQUENCE public.languages_id_seq OWNED BY public.languages.id; |
| 58 | + |
| 59 | + |
| 60 | +-- |
| 61 | +-- Name: regions; Type: TABLE; Schema: public; Owner: - |
| 62 | +-- |
| 63 | + |
| 64 | +CREATE TABLE public.regions ( |
| 65 | + id bigint NOT NULL, |
| 66 | + name character varying, |
| 67 | + created_at timestamp(6) without time zone NOT NULL, |
| 68 | + updated_at timestamp(6) without time zone NOT NULL |
| 69 | +); |
| 70 | + |
| 71 | + |
| 72 | +-- |
| 73 | +-- Name: regions_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
| 74 | +-- |
| 75 | + |
| 76 | +CREATE SEQUENCE public.regions_id_seq |
| 77 | + START WITH 1 |
| 78 | + INCREMENT BY 1 |
| 79 | + NO MINVALUE |
| 80 | + NO MAXVALUE |
| 81 | + CACHE 1; |
| 82 | + |
| 83 | + |
| 84 | +-- |
| 85 | +-- Name: regions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
| 86 | +-- |
| 87 | + |
| 88 | +ALTER SEQUENCE public.regions_id_seq OWNED BY public.regions.id; |
| 89 | + |
| 90 | + |
| 91 | +-- |
| 92 | +-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: - |
| 93 | +-- |
| 94 | + |
| 95 | +CREATE TABLE public.schema_migrations ( |
| 96 | + version character varying NOT NULL |
| 97 | +); |
| 98 | + |
| 99 | + |
| 100 | +-- |
| 101 | +-- Name: sessions; Type: TABLE; Schema: public; Owner: - |
| 102 | +-- |
| 103 | + |
| 104 | +CREATE TABLE public.sessions ( |
| 105 | + id bigint NOT NULL, |
| 106 | + user_id bigint NOT NULL, |
| 107 | + ip_address character varying, |
| 108 | + user_agent character varying, |
| 109 | + created_at timestamp(6) without time zone NOT NULL, |
| 110 | + updated_at timestamp(6) without time zone NOT NULL |
| 111 | +); |
| 112 | + |
| 113 | + |
| 114 | +-- |
| 115 | +-- Name: sessions_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
| 116 | +-- |
| 117 | + |
| 118 | +CREATE SEQUENCE public.sessions_id_seq |
| 119 | + START WITH 1 |
| 120 | + INCREMENT BY 1 |
| 121 | + NO MINVALUE |
| 122 | + NO MAXVALUE |
| 123 | + CACHE 1; |
| 124 | + |
| 125 | + |
| 126 | +-- |
| 127 | +-- Name: sessions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
| 128 | +-- |
| 129 | + |
| 130 | +ALTER SEQUENCE public.sessions_id_seq OWNED BY public.sessions.id; |
| 131 | + |
| 132 | + |
| 133 | +-- |
| 134 | +-- Name: users; Type: TABLE; Schema: public; Owner: - |
| 135 | +-- |
| 136 | + |
| 137 | +CREATE TABLE public.users ( |
| 138 | + id bigint NOT NULL, |
| 139 | + email character varying NOT NULL, |
| 140 | + password_digest character varying NOT NULL, |
| 141 | + is_admin boolean DEFAULT false NOT NULL, |
| 142 | + created_at timestamp(6) without time zone NOT NULL, |
| 143 | + updated_at timestamp(6) without time zone NOT NULL |
| 144 | +); |
| 145 | + |
| 146 | + |
| 147 | +-- |
| 148 | +-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
| 149 | +-- |
| 150 | + |
| 151 | +CREATE SEQUENCE public.users_id_seq |
| 152 | + START WITH 1 |
| 153 | + INCREMENT BY 1 |
| 154 | + NO MINVALUE |
| 155 | + NO MAXVALUE |
| 156 | + CACHE 1; |
| 157 | + |
| 158 | + |
| 159 | +-- |
| 160 | +-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
| 161 | +-- |
| 162 | + |
| 163 | +ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id; |
| 164 | + |
| 165 | + |
| 166 | +-- |
| 167 | +-- Name: languages id; Type: DEFAULT; Schema: public; Owner: - |
| 168 | +-- |
| 169 | + |
| 170 | +ALTER TABLE ONLY public.languages ALTER COLUMN id SET DEFAULT nextval('public.languages_id_seq'::regclass); |
| 171 | + |
| 172 | + |
| 173 | +-- |
| 174 | +-- Name: regions id; Type: DEFAULT; Schema: public; Owner: - |
| 175 | +-- |
| 176 | + |
| 177 | +ALTER TABLE ONLY public.regions ALTER COLUMN id SET DEFAULT nextval('public.regions_id_seq'::regclass); |
| 178 | + |
| 179 | + |
| 180 | +-- |
| 181 | +-- Name: sessions id; Type: DEFAULT; Schema: public; Owner: - |
| 182 | +-- |
| 183 | + |
| 184 | +ALTER TABLE ONLY public.sessions ALTER COLUMN id SET DEFAULT nextval('public.sessions_id_seq'::regclass); |
| 185 | + |
| 186 | + |
| 187 | +-- |
| 188 | +-- Name: users id; Type: DEFAULT; Schema: public; Owner: - |
| 189 | +-- |
| 190 | + |
| 191 | +ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass); |
| 192 | + |
| 193 | + |
| 194 | +-- |
| 195 | +-- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - |
| 196 | +-- |
| 197 | + |
| 198 | +ALTER TABLE ONLY public.ar_internal_metadata |
| 199 | + ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key); |
| 200 | + |
| 201 | + |
| 202 | +-- |
| 203 | +-- Name: languages languages_pkey; Type: CONSTRAINT; Schema: public; Owner: - |
| 204 | +-- |
| 205 | + |
| 206 | +ALTER TABLE ONLY public.languages |
| 207 | + ADD CONSTRAINT languages_pkey PRIMARY KEY (id); |
| 208 | + |
| 209 | + |
| 210 | +-- |
| 211 | +-- Name: regions regions_pkey; Type: CONSTRAINT; Schema: public; Owner: - |
| 212 | +-- |
| 213 | + |
| 214 | +ALTER TABLE ONLY public.regions |
| 215 | + ADD CONSTRAINT regions_pkey PRIMARY KEY (id); |
| 216 | + |
| 217 | + |
| 218 | +-- |
| 219 | +-- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - |
| 220 | +-- |
| 221 | + |
| 222 | +ALTER TABLE ONLY public.schema_migrations |
| 223 | + ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version); |
| 224 | + |
| 225 | + |
| 226 | +-- |
| 227 | +-- Name: sessions sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: - |
| 228 | +-- |
| 229 | + |
| 230 | +ALTER TABLE ONLY public.sessions |
| 231 | + ADD CONSTRAINT sessions_pkey PRIMARY KEY (id); |
| 232 | + |
| 233 | + |
| 234 | +-- |
| 235 | +-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: - |
| 236 | +-- |
| 237 | + |
| 238 | +ALTER TABLE ONLY public.users |
| 239 | + ADD CONSTRAINT users_pkey PRIMARY KEY (id); |
| 240 | + |
| 241 | + |
| 242 | +-- |
| 243 | +-- Name: index_sessions_on_user_id; Type: INDEX; Schema: public; Owner: - |
| 244 | +-- |
| 245 | + |
| 246 | +CREATE INDEX index_sessions_on_user_id ON public.sessions USING btree (user_id); |
| 247 | + |
| 248 | + |
| 249 | +-- |
| 250 | +-- Name: index_users_on_email; Type: INDEX; Schema: public; Owner: - |
| 251 | +-- |
| 252 | + |
| 253 | +CREATE UNIQUE INDEX index_users_on_email ON public.users USING btree (email); |
| 254 | + |
| 255 | + |
| 256 | +-- |
| 257 | +-- Name: sessions fk_rails_758836b4f0; Type: FK CONSTRAINT; Schema: public; Owner: - |
| 258 | +-- |
| 259 | + |
| 260 | +ALTER TABLE ONLY public.sessions |
| 261 | + ADD CONSTRAINT fk_rails_758836b4f0 FOREIGN KEY (user_id) REFERENCES public.users(id); |
| 262 | + |
| 263 | + |
| 264 | +-- |
| 265 | +-- PostgreSQL database dump complete |
| 266 | +-- |
| 267 | + |
| 268 | +SET search_path TO "$user", public; |
| 269 | + |
| 270 | +INSERT INTO "schema_migrations" (version) VALUES |
| 271 | +('20250203133408'), |
| 272 | +('20250203130619'), |
| 273 | +('20250203094127'), |
| 274 | +('20250203094126'), |
| 275 | +('0'); |
| 276 | + |
0 commit comments