github.com/kotovmak/go-admin@v1.1.1/data/admin.pgsql (about) 1 -- 2 -- PostgreSQL database dump 3 -- 4 5 -- Dumped from database version 9.5.14 6 -- Dumped by pg_dump version 10.5 7 8 SET statement_timeout = 0; 9 SET lock_timeout = 0; 10 SET idle_in_transaction_session_timeout = 0; 11 SET client_encoding = 'UTF8'; 12 SET standard_conforming_strings = on; 13 SELECT pg_catalog.set_config('search_path', '', false); 14 SET check_function_bodies = false; 15 SET client_min_messages = warning; 16 SET row_security = off; 17 18 -- 19 -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: 20 -- 21 22 CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; 23 24 25 -- 26 -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: 27 -- 28 29 COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; 30 31 32 -- 33 -- Name: goadmin_menu_myid_seq; Type: SEQUENCE; Schema: public; Owner: postgres 34 -- 35 36 CREATE SEQUENCE public.goadmin_menu_myid_seq 37 START WITH 1 38 INCREMENT BY 1 39 NO MINVALUE 40 MAXVALUE 99999999 41 CACHE 1; 42 43 44 ALTER TABLE public.goadmin_menu_myid_seq OWNER TO postgres; 45 46 SET default_tablespace = ''; 47 48 SET default_with_oids = false; 49 50 -- 51 -- Name: goadmin_menu; Type: TABLE; Schema: public; Owner: postgres 52 -- 53 54 CREATE TABLE public.goadmin_menu ( 55 id integer DEFAULT nextval('public.goadmin_menu_myid_seq'::regclass) NOT NULL, 56 parent_id integer DEFAULT 0 NOT NULL, 57 type integer DEFAULT 0, 58 "order" integer DEFAULT 0 NOT NULL, 59 title character varying(50) NOT NULL, 60 header character varying(100), 61 plugin_name character varying(100) NOT NULL, 62 icon character varying(50) NOT NULL, 63 uri character varying(3000) NOT NULL, 64 uuid character varying(100), 65 created_at timestamp without time zone DEFAULT now(), 66 updated_at timestamp without time zone DEFAULT now() 67 ); 68 69 70 ALTER TABLE public.goadmin_menu OWNER TO postgres; 71 72 -- 73 -- Name: goadmin_operation_log_myid_seq; Type: SEQUENCE; Schema: public; Owner: postgres 74 -- 75 76 CREATE SEQUENCE public.goadmin_operation_log_myid_seq 77 START WITH 1 78 INCREMENT BY 1 79 NO MINVALUE 80 MAXVALUE 99999999 81 CACHE 1; 82 83 84 ALTER TABLE public.goadmin_operation_log_myid_seq OWNER TO postgres; 85 86 -- 87 -- Name: goadmin_operation_log; Type: TABLE; Schema: public; Owner: postgres 88 -- 89 90 CREATE TABLE public.goadmin_operation_log ( 91 id integer DEFAULT nextval('public.goadmin_operation_log_myid_seq'::regclass) NOT NULL, 92 user_id integer NOT NULL, 93 path character varying(255) NOT NULL, 94 method character varying(10) NOT NULL, 95 ip character varying(15) NOT NULL, 96 input text NOT NULL, 97 created_at timestamp without time zone DEFAULT now(), 98 updated_at timestamp without time zone DEFAULT now() 99 ); 100 101 102 ALTER TABLE public.goadmin_operation_log OWNER TO postgres; 103 104 -- 105 -- Name: goadmin_site_myid_seq; Type: SEQUENCE; Schema: public; Owner: postgres 106 -- 107 108 CREATE SEQUENCE public.goadmin_site_myid_seq 109 START WITH 1 110 INCREMENT BY 1 111 NO MINVALUE 112 MAXVALUE 99999999 113 CACHE 1; 114 115 116 ALTER TABLE public.goadmin_site_myid_seq OWNER TO postgres; 117 118 -- 119 -- Name: goadmin_site; Type: TABLE; Schema: public; Owner: postgres 120 -- 121 122 CREATE TABLE public.goadmin_site ( 123 id integer DEFAULT nextval('public.goadmin_site_myid_seq'::regclass) NOT NULL, 124 key character varying(100) NOT NULL, 125 value text NOT NULL, 126 type integer DEFAULT 0, 127 description character varying(3000), 128 state integer DEFAULT 0, 129 created_at timestamp without time zone DEFAULT now(), 130 updated_at timestamp without time zone DEFAULT now() 131 ); 132 133 134 ALTER TABLE public.goadmin_site OWNER TO postgres; 135 136 -- 137 -- Name: goadmin_permissions_myid_seq; Type: SEQUENCE; Schema: public; Owner: postgres 138 -- 139 140 CREATE SEQUENCE public.goadmin_permissions_myid_seq 141 START WITH 1 142 INCREMENT BY 1 143 NO MINVALUE 144 MAXVALUE 99999999 145 CACHE 1; 146 147 148 ALTER TABLE public.goadmin_permissions_myid_seq OWNER TO postgres; 149 150 -- 151 -- Name: goadmin_permissions; Type: TABLE; Schema: public; Owner: postgres 152 -- 153 154 CREATE TABLE public.goadmin_permissions ( 155 id integer DEFAULT nextval('public.goadmin_permissions_myid_seq'::regclass) NOT NULL, 156 name character varying(50) NOT NULL, 157 slug character varying(50) NOT NULL, 158 http_method character varying(255), 159 http_path text NOT NULL, 160 created_at timestamp without time zone DEFAULT now(), 161 updated_at timestamp without time zone DEFAULT now() 162 ); 163 164 165 ALTER TABLE public.goadmin_permissions OWNER TO postgres; 166 167 -- 168 -- Name: goadmin_role_menu; Type: TABLE; Schema: public; Owner: postgres 169 -- 170 171 CREATE TABLE public.goadmin_role_menu ( 172 role_id integer NOT NULL, 173 menu_id integer NOT NULL, 174 created_at timestamp without time zone DEFAULT now(), 175 updated_at timestamp without time zone DEFAULT now() 176 ); 177 178 179 ALTER TABLE public.goadmin_role_menu OWNER TO postgres; 180 181 -- 182 -- Name: goadmin_role_permissions; Type: TABLE; Schema: public; Owner: postgres 183 -- 184 185 CREATE TABLE public.goadmin_role_permissions ( 186 role_id integer NOT NULL, 187 permission_id integer NOT NULL, 188 created_at timestamp without time zone DEFAULT now(), 189 updated_at timestamp without time zone DEFAULT now() 190 ); 191 192 193 ALTER TABLE public.goadmin_role_permissions OWNER TO postgres; 194 195 -- 196 -- Name: goadmin_role_users; Type: TABLE; Schema: public; Owner: postgres 197 -- 198 199 CREATE TABLE public.goadmin_role_users ( 200 role_id integer NOT NULL, 201 user_id integer NOT NULL, 202 created_at timestamp without time zone DEFAULT now(), 203 updated_at timestamp without time zone DEFAULT now() 204 ); 205 206 207 ALTER TABLE public.goadmin_role_users OWNER TO postgres; 208 209 -- 210 -- Name: goadmin_roles_myid_seq; Type: SEQUENCE; Schema: public; Owner: postgres 211 -- 212 213 CREATE SEQUENCE public.goadmin_roles_myid_seq 214 START WITH 1 215 INCREMENT BY 1 216 NO MINVALUE 217 MAXVALUE 99999999 218 CACHE 1; 219 220 221 ALTER TABLE public.goadmin_roles_myid_seq OWNER TO postgres; 222 223 -- 224 -- Name: goadmin_roles; Type: TABLE; Schema: public; Owner: postgres 225 -- 226 227 CREATE TABLE public.goadmin_roles ( 228 id integer DEFAULT nextval('public.goadmin_roles_myid_seq'::regclass) NOT NULL, 229 name character varying NOT NULL, 230 slug character varying NOT NULL, 231 created_at timestamp without time zone DEFAULT now(), 232 updated_at timestamp without time zone DEFAULT now() 233 ); 234 235 236 ALTER TABLE public.goadmin_roles OWNER TO postgres; 237 238 -- 239 -- Name: goadmin_session_myid_seq; Type: SEQUENCE; Schema: public; Owner: postgres 240 -- 241 242 CREATE SEQUENCE public.goadmin_session_myid_seq 243 START WITH 1 244 INCREMENT BY 1 245 NO MINVALUE 246 MAXVALUE 99999999 247 CACHE 1; 248 249 250 ALTER TABLE public.goadmin_session_myid_seq OWNER TO postgres; 251 252 -- 253 -- Name: goadmin_session; Type: TABLE; Schema: public; Owner: postgres 254 -- 255 256 CREATE TABLE public.goadmin_session ( 257 id integer DEFAULT nextval('public.goadmin_session_myid_seq'::regclass) NOT NULL, 258 sid character varying(50) NOT NULL, 259 "values" character varying(3000) NOT NULL, 260 created_at timestamp without time zone DEFAULT now(), 261 updated_at timestamp without time zone DEFAULT now() 262 ); 263 264 265 ALTER TABLE public.goadmin_session OWNER TO postgres; 266 267 -- 268 -- Name: goadmin_user_permissions; Type: TABLE; Schema: public; Owner: postgres 269 -- 270 271 CREATE TABLE public.goadmin_user_permissions ( 272 user_id integer NOT NULL, 273 permission_id integer NOT NULL, 274 created_at timestamp without time zone DEFAULT now(), 275 updated_at timestamp without time zone DEFAULT now() 276 ); 277 278 279 ALTER TABLE public.goadmin_user_permissions OWNER TO postgres; 280 281 -- 282 -- Name: goadmin_users_myid_seq; Type: SEQUENCE; Schema: public; Owner: postgres 283 -- 284 285 CREATE SEQUENCE public.goadmin_users_myid_seq 286 START WITH 1 287 INCREMENT BY 1 288 NO MINVALUE 289 MAXVALUE 99999999 290 CACHE 1; 291 292 293 ALTER TABLE public.goadmin_users_myid_seq OWNER TO postgres; 294 295 -- 296 -- Name: goadmin_users; Type: TABLE; Schema: public; Owner: postgres 297 -- 298 299 CREATE TABLE public.goadmin_users ( 300 id integer DEFAULT nextval('public.goadmin_users_myid_seq'::regclass) NOT NULL, 301 username character varying(100) NOT NULL, 302 password character varying(100) NOT NULL, 303 name character varying(100) NOT NULL, 304 avatar character varying(255), 305 remember_token character varying(100), 306 created_at timestamp without time zone DEFAULT now(), 307 updated_at timestamp without time zone DEFAULT now() 308 ); 309 310 311 ALTER TABLE public.goadmin_users OWNER TO postgres; 312 313 -- 314 -- Data for Name: goadmin_menu; Type: TABLE DATA; Schema: public; Owner: postgres 315 -- 316 317 COPY public.goadmin_menu (id, parent_id, type, "order", title, plugin_name, header, icon, uri, created_at, updated_at) FROM stdin; 318 1 0 1 2 Admin \N fa-tasks 2019-09-10 00:00:00 2019-09-10 00:00:00 319 2 1 1 2 Users \N fa-users /info/manager 2019-09-10 00:00:00 2019-09-10 00:00:00 320 3 1 1 3 Roles \N fa-user /info/roles 2019-09-10 00:00:00 2019-09-10 00:00:00 321 4 1 1 4 Permission \N fa-ban /info/permission 2019-09-10 00:00:00 2019-09-10 00:00:00 322 5 1 1 5 Menu \N fa-bars /menu 2019-09-10 00:00:00 2019-09-10 00:00:00 323 6 1 1 6 Operation log \N fa-history /info/op 2019-09-10 00:00:00 2019-09-10 00:00:00 324 7 0 1 1 Dashboard \N fa-bar-chart / 2019-09-10 00:00:00 2019-09-10 00:00:00 325 \. 326 327 328 -- 329 -- Data for Name: goadmin_operation_log; Type: TABLE DATA; Schema: public; Owner: postgres 330 -- 331 332 COPY public.goadmin_operation_log (id, user_id, path, method, ip, input, created_at, updated_at) FROM stdin; 333 \. 334 335 336 -- 337 -- Data for Name: goadmin_site; Type: TABLE DATA; Schema: public; Owner: postgres 338 -- 339 340 COPY public.goadmin_site (id, key, value, description, state, created_at, updated_at) FROM stdin; 341 \. 342 343 344 -- 345 -- Data for Name: goadmin_permissions; Type: TABLE DATA; Schema: public; Owner: postgres 346 -- 347 348 COPY public.goadmin_permissions (id, name, slug, http_method, http_path, created_at, updated_at) FROM stdin; 349 1 All permission * * 2019-09-10 00:00:00 2019-09-10 00:00:00 350 2 Dashboard dashboard GET,PUT,POST,DELETE / 2019-09-10 00:00:00 2019-09-10 00:00:00 351 \. 352 353 354 -- 355 -- Data for Name: goadmin_role_menu; Type: TABLE DATA; Schema: public; Owner: postgres 356 -- 357 358 COPY public.goadmin_role_menu (role_id, menu_id, created_at, updated_at) FROM stdin; 359 1 1 2019-09-10 00:00:00 2019-09-10 00:00:00 360 1 7 2019-09-10 00:00:00 2019-09-10 00:00:00 361 2 7 2019-09-10 00:00:00 2019-09-10 00:00:00 362 \. 363 364 365 -- 366 -- Data for Name: goadmin_role_permissions; Type: TABLE DATA; Schema: public; Owner: postgres 367 -- 368 369 COPY public.goadmin_role_permissions (role_id, permission_id, created_at, updated_at) FROM stdin; 370 1 1 2019-09-10 00:00:00 2019-09-10 00:00:00 371 1 2 2019-09-10 00:00:00 2019-09-10 00:00:00 372 2 2 2019-09-10 00:00:00 2019-09-10 00:00:00 373 0 3 \N \N 374 0 3 \N \N 375 0 3 \N \N 376 0 3 \N \N 377 0 3 \N \N 378 0 3 \N \N 379 0 3 \N \N 380 0 3 \N \N 381 0 3 \N \N 382 0 3 \N \N 383 0 3 \N \N 384 0 3 \N \N 385 0 3 \N \N 386 0 3 \N \N 387 0 3 \N \N 388 0 3 \N \N 389 \. 390 391 392 -- 393 -- Data for Name: goadmin_role_users; Type: TABLE DATA; Schema: public; Owner: postgres 394 -- 395 396 COPY public.goadmin_role_users (role_id, user_id, created_at, updated_at) FROM stdin; 397 1 1 2019-09-10 00:00:00 2019-09-10 00:00:00 398 2 2 2019-09-10 00:00:00 2019-09-10 00:00:00 399 \. 400 401 402 -- 403 -- Data for Name: goadmin_roles; Type: TABLE DATA; Schema: public; Owner: postgres 404 -- 405 406 COPY public.goadmin_roles (id, name, slug, created_at, updated_at) FROM stdin; 407 1 Administrator administrator 2019-09-10 00:00:00 2019-09-10 00:00:00 408 2 Operator operator 2019-09-10 00:00:00 2019-09-10 00:00:00 409 \. 410 411 412 -- 413 -- Data for Name: goadmin_session; Type: TABLE DATA; Schema: public; Owner: postgres 414 -- 415 416 COPY public.goadmin_session (id, sid, "values", created_at, updated_at) FROM stdin; 417 \. 418 419 420 -- 421 -- Data for Name: goadmin_user_permissions; Type: TABLE DATA; Schema: public; Owner: postgres 422 -- 423 424 COPY public.goadmin_user_permissions (user_id, permission_id, created_at, updated_at) FROM stdin; 425 1 1 2019-09-10 00:00:00 2019-09-10 00:00:00 426 2 2 2019-09-10 00:00:00 2019-09-10 00:00:00 427 0 1 \N \N 428 0 1 \N \N 429 0 1 \N \N 430 0 1 \N \N 431 0 1 \N \N 432 0 1 \N \N 433 0 1 \N \N 434 0 1 \N \N 435 0 1 \N \N 436 0 1 \N \N 437 0 1 \N \N 438 0 1 \N \N 439 0 1 \N \N 440 0 1 \N \N 441 0 1 \N \N 442 0 1 \N \N 443 \. 444 445 446 -- 447 -- Data for Name: goadmin_users; Type: TABLE DATA; Schema: public; Owner: postgres 448 -- 449 450 COPY public.goadmin_users (id, username, password, name, avatar, remember_token, created_at, updated_at) FROM stdin; 451 1 admin $2a$10$OxWYJJGTP2gi00l2x06QuOWqw5VR47MQCJ0vNKnbMYfrutij10Hwe admin tlNcBVK9AvfYH7WEnwB1RKvocJu8FfRy4um3DJtwdHuJy0dwFsLOgAc0xUfh 2019-09-10 00:00:00 2019-09-10 00:00:00 452 2 operator $2a$10$rVqkOzHjN2MdlEprRflb1eGP0oZXuSrbJLOmJagFsCd81YZm0bsh. Operator \N 2019-09-10 00:00:00 2019-09-10 00:00:00 453 \. 454 455 456 -- 457 -- Name: goadmin_menu_myid_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 458 -- 459 460 SELECT pg_catalog.setval('public.goadmin_menu_myid_seq', 7, true); 461 462 463 -- 464 -- Name: goadmin_operation_log_myid_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 465 -- 466 467 SELECT pg_catalog.setval('public.goadmin_operation_log_myid_seq', 1, true); 468 469 470 -- 471 -- Name: goadmin_permissions_myid_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 472 -- 473 474 SELECT pg_catalog.setval('public.goadmin_permissions_myid_seq', 2, true); 475 476 477 -- 478 -- Name: goadmin_roles_myid_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 479 -- 480 481 SELECT pg_catalog.setval('public.goadmin_roles_myid_seq', 2, true); 482 483 484 -- 485 -- Name: goadmin_site_myid_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 486 -- 487 488 SELECT pg_catalog.setval('public.goadmin_site_myid_seq', 1, true); 489 490 491 -- 492 -- Name: goadmin_session_myid_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 493 -- 494 495 SELECT pg_catalog.setval('public.goadmin_session_myid_seq', 1, true); 496 497 498 -- 499 -- Name: goadmin_users_myid_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres 500 -- 501 502 SELECT pg_catalog.setval('public.goadmin_users_myid_seq', 2, true); 503 504 505 -- 506 -- Name: goadmin_menu goadmin_menu_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres 507 -- 508 509 ALTER TABLE ONLY public.goadmin_menu 510 ADD CONSTRAINT goadmin_menu_pkey PRIMARY KEY (id); 511 512 513 -- 514 -- Name: goadmin_operation_log goadmin_operation_log_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres 515 -- 516 517 ALTER TABLE ONLY public.goadmin_operation_log 518 ADD CONSTRAINT goadmin_operation_log_pkey PRIMARY KEY (id); 519 520 521 -- 522 -- Name: goadmin_permissions goadmin_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres 523 -- 524 525 ALTER TABLE ONLY public.goadmin_permissions 526 ADD CONSTRAINT goadmin_permissions_pkey PRIMARY KEY (id); 527 528 529 -- 530 -- Name: goadmin_roles goadmin_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres 531 -- 532 533 ALTER TABLE ONLY public.goadmin_roles 534 ADD CONSTRAINT goadmin_roles_pkey PRIMARY KEY (id); 535 536 537 -- 538 -- Name: goadmin_site goadmin_site_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres 539 -- 540 541 ALTER TABLE ONLY public.goadmin_site 542 ADD CONSTRAINT goadmin_site_pkey PRIMARY KEY (id); 543 544 545 -- 546 -- Name: goadmin_session goadmin_session_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres 547 -- 548 549 ALTER TABLE ONLY public.goadmin_session 550 ADD CONSTRAINT goadmin_session_pkey PRIMARY KEY (id); 551 552 553 -- 554 -- Name: goadmin_users goadmin_users_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres 555 -- 556 557 ALTER TABLE ONLY public.goadmin_users 558 ADD CONSTRAINT goadmin_users_pkey PRIMARY KEY (id); 559 560 561 -- 562 -- Name: SCHEMA public; Type: ACL; Schema: -; Owner: postgres 563 -- 564 565 REVOKE ALL ON SCHEMA public FROM PUBLIC; 566 REVOKE ALL ON SCHEMA public FROM postgres; 567 GRANT ALL ON SCHEMA public TO postgres; 568 GRANT ALL ON SCHEMA public TO PUBLIC; 569 570 571 -- 572 -- PostgreSQL database dump complete 573 -- 574