eedb/sql/dump.sql
Bartosz Wieczorek 3c5b5d3be3 add sql dump
2018-01-30 11:01:31 +01:00

2178 lines
113 KiB
PL/PgSQL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- TOC entry 2399 (class 0 OID 0)
-- Dependencies: 7
-- Name: SCHEMA "public"; Type: COMMENT; Schema: -; Owner: postgres
--
COMMENT ON SCHEMA "public" IS 'standard public schema';
--
-- TOC entry 1 (class 3079 OID 11861)
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS "plpgsql" WITH SCHEMA "pg_catalog";
--
-- TOC entry 2401 (class 0 OID 0)
-- Dependencies: 1
-- Name: EXTENSION "plpgsql"; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION "plpgsql" IS 'PL/pgSQL procedural language';
--
-- TOC entry 2 (class 3079 OID 24584)
-- Name: ltree; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS "ltree" WITH SCHEMA "public";
--
-- TOC entry 2402 (class 0 OID 0)
-- Dependencies: 2
-- Name: EXTENSION "ltree"; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION "ltree" IS 'data type for hierarchical tree-like structures';
SET search_path = "public", pg_catalog;
--
-- TOC entry 644 (class 1247 OID 24762)
-- Name: parameter_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE "parameter_type" AS ENUM (
'stored',
'pointed'
);
ALTER TYPE "parameter_type" OWNER TO "postgres";
--
-- TOC entry 288 (class 1255 OID 50688)
-- Name: change_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION "change_trigger"() RETURNS "trigger"
LANGUAGE "plpgsql" SECURITY DEFINER
AS $$
BEGIN
IF TG_OP = 'INSERT'
THEN
INSERT INTO logging.t_history (tabname, schemaname, operation, new_val)
VALUES (TG_RELNAME, TG_TABLE_SCHEMA, TG_OP, row_to_json(NEW));
RETURN NEW;
ELSIF TG_OP = 'UPDATE'
THEN
INSERT INTO logging.t_history (tabname, schemaname, operation, new_val, old_val)
VALUES (TG_RELNAME, TG_TABLE_SCHEMA, TG_OP,
row_to_json(NEW), row_to_json(OLD));
RETURN NEW;
ELSIF TG_OP = 'DELETE'
THEN
INSERT INTO logging.t_history (tabname, schemaname, operation, old_val)
VALUES (TG_RELNAME, TG_TABLE_SCHEMA, TG_OP, row_to_json(OLD));
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION "public"."change_trigger"() OWNER TO "postgres";
--
-- TOC entry 289 (class 1255 OID 53396)
-- Name: default_admins_group_id(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION "default_admins_group_id"() RETURNS integer
LANGUAGE "plpgsql"
AS $$
declare id integer;
BEGIN
SELECT "group"."gid" FROM "group" WHERE "group"."name" = 'admins' limit 1 into id;
return id;
end $$;
ALTER FUNCTION "public"."default_admins_group_id"() OWNER TO "postgres";
--
-- TOC entry 286 (class 1255 OID 52444)
-- Name: default_group_id(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION "default_group_id"() RETURNS integer
LANGUAGE "plpgsql"
AS $$
declare id integer;
BEGIN
SELECT "group"."gid" FROM "group" WHERE "group"."name" = 'nogroup' limit 1 into id;
return id;
end $$;
ALTER FUNCTION "public"."default_group_id"() OWNER TO "postgres";
--
-- TOC entry 287 (class 1255 OID 53395)
-- Name: default_users_group_id(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION "default_users_group_id"() RETURNS integer
LANGUAGE "plpgsql"
AS $$
declare id integer;
BEGIN
SELECT "group"."gid" FROM "group" WHERE "group"."name" = 'users' limit 1 into id;
return id;
end $$;
ALTER FUNCTION "public"."default_users_group_id"() OWNER TO "postgres";
--
-- TOC entry 292 (class 1255 OID 34059)
-- Name: last_update_column(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION "last_update_column"() RETURNS "trigger"
LANGUAGE "plpgsql"
AS $$
BEGIN
NEW.updated = now();
RETURN NEW;
END;
$$;
ALTER FUNCTION "public"."last_update_column"() OWNER TO "postgres";
--
-- TOC entry 291 (class 1255 OID 34300)
-- Name: objects_with_action(character varying, character varying, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION "objects_with_action"("m_tab" character varying, "m_action" character varying, "userid" integer) RETURNS SETOF integer
LANGUAGE "plpgsql"
AS $$
DECLARE r int;
DECLARE usergroups INT;
DECLARE groupsroot INT;
DECLARE tablename VARCHAR(255);
BEGIN
SELECT "group"
FROM "user"
WHERE uid = userid
INTO usergroups;
groupsroot := 1;
FOR
r IN
execute 'select distinct obj.uid
from ' || m_tab ||' as obj
inner join implemented_action as ia
on ia.table_name ='''|| m_tab || '''
and ia.action = '''|| m_action ||'''
and ((ia.status = 0) or (ia.status & obj.status <> 0))
inner join action as ac
on ac.title = '''|| m_action ||'''
left outer join privilege as pr
on pr.related_table_name = '''|| m_tab || '''
and pr.action = '''|| m_action ||'''
and (
(pr.type = ''object'' and pr.related_object_uid = obj.uid)
or pr.type = ''global''
or (pr.role = ''self'' and ' || userid || ' = obj.uid and '''|| m_tab || ''' = ''users''))
WHERE ac.apply_object
AND (
(' || usergroups || ' & ' || groupsroot || ' <> 0)
OR (
ac.title = ''read''
AND (
(obj.unixperms & 4 <> 0)
OR (
(obj.unixperms & 256 <> 0)
AND obj.owner = ' || userid || '
)
OR (
(obj.unixperms & 32 <> 0)
AND (' || usergroups || ' & obj.group <> 0)
)
)
)
OR (
ac.title = ''write''
AND (
(obj.unixperms & 2 <> 0)
OR (
(obj.unixperms & 128 <> 0)
AND obj.owner = ' || userid || '
)
OR (
(obj.unixperms & 16 <> 0)
AND (' || usergroups || ' & obj.group <> 0)
)
)
)
OR (
ac.title = ''delete''
AND (
(obj.unixperms & 1 <> 0)
OR ((obj.unixperms & 64 <> 0) AND obj.owner = ' || userid || ')
OR ((obj.unixperms & 8 <> 0) AND (' || usergroups || ' & obj.group <> 0))
)
)
OR (
pr.role = ''user''
AND pr.who = ' || userid || '
)
OR (
pr.role = ''owner''
AND obj.owner = ' || userid || '
)
OR (
pr.role = ''owner_group''
AND (obj.group & ' || usergroups || ' <> 0)
)
OR (
pr.role = ''group''
AND (pr.who & ' || usergroups || ' <> 0)
)
)
OR pr.role = ''self'' '
LOOP
RETURN NEXT r;
end loop;
END $$;
ALTER FUNCTION "public"."objects_with_action"("m_tab" character varying, "m_action" character varying, "userid" integer) OWNER TO "postgres";
--
-- TOC entry 284 (class 1255 OID 24759)
-- Name: perm_to_numeric(integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION "perm_to_numeric"("m_owner" integer, "m_group" integer, "m_other" integer) RETURNS integer
LANGUAGE "plpgsql" IMMUTABLE COST 1
AS $$
BEGIN RETURN cast((m_owner << 6) | (m_group << 3 | m_other << 0) AS INT); END $$;
ALTER FUNCTION "public"."perm_to_numeric"("m_owner" integer, "m_group" integer, "m_other" integer) OWNER TO "postgres";
--
-- TOC entry 285 (class 1255 OID 24760)
-- Name: unix_to_numeric(character varying); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION "unix_to_numeric"("unixperm" character varying) RETURNS integer
LANGUAGE "plpgsql" IMMUTABLE COST 1
AS $$
DECLARE txt CHAR(3);
BEGIN
txt := right(unixperm, 3);
RETURN perm_to_numeric(cast(substring(txt, 1, 1) AS INT), cast(substring(txt, 2, 1) AS INT), cast(substring(txt, 3, 1) AS INT));
END $$;
ALTER FUNCTION "public"."unix_to_numeric"("unixperm" character varying) OWNER TO "postgres";
--
-- TOC entry 290 (class 1255 OID 34201)
-- Name: update_category_parent_path(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION "update_category_parent_path"() RETURNS "trigger"
LANGUAGE "plpgsql"
AS $$
DECLARE
path ltree;
BEGIN
IF NEW.parent_id IS NULL THEN
NEW.parent_path = 'root'::ltree;
ELSEIF TG_OP = 'INSERT' OR OLD.parent_id IS NULL OR OLD.parent_id != NEW.parent_id THEN
SELECT parent_path || "id"::text FROM "category" WHERE "id" = NEW.parent_id INTO path;
IF path IS NULL THEN
RAISE exception 'Invalid parent_uid %', NEW.parent_id;
END IF;
NEW.parent_path = path;
END IF;
RETURN NEW;
END;
$$;
ALTER FUNCTION "public"."update_category_parent_path"() OWNER TO "postgres";
SET default_tablespace = '';
SET default_with_oids = false;
--
-- TOC entry 184 (class 1259 OID 53440)
-- Name: action; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "action" (
"title" "text" NOT NULL,
"apply_object" boolean NOT NULL,
CONSTRAINT "action_title_check" CHECK ((("length"("title") >= 3) AND ("length"("title") < 100)))
);
ALTER TABLE "action" OWNER TO "postgres";
--
-- TOC entry 2403 (class 0 OID 0)
-- Dependencies: 184
-- Name: COLUMN "action"."title"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "action"."title" IS 'column contains name of action';
--
-- TOC entry 2404 (class 0 OID 0)
-- Dependencies: 184
-- Name: COLUMN "action"."apply_object"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "action"."apply_object" IS 'column specifies whether an action applies to objects or tables. Certain actions, like “create,” apply only to tables. I find the system is easier to manage if I choose my actions so they can only apply to one or the other, not both.';
--
-- TOC entry 190 (class 1259 OID 53489)
-- Name: auth_identity; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "auth_identity" (
"id" integer NOT NULL,
"auth_info_id" bigint,
"provider" character varying(64) NOT NULL,
"identity" character varying(512) NOT NULL
);
ALTER TABLE "auth_identity" OWNER TO "postgres";
--
-- TOC entry 189 (class 1259 OID 53487)
-- Name: auth_identity_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE "auth_identity_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE "auth_identity_id_seq" OWNER TO "postgres";
--
-- TOC entry 2405 (class 0 OID 0)
-- Dependencies: 189
-- Name: auth_identity_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE "auth_identity_id_seq" OWNED BY "auth_identity"."id";
--
-- TOC entry 188 (class 1259 OID 53473)
-- Name: auth_info; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "auth_info" (
"id" integer NOT NULL,
"user_uid" integer,
"password_hash" character varying(100) NOT NULL,
"password_method" character varying(20) NOT NULL,
"password_salt" character varying(20) NOT NULL,
"email" character varying(256) NOT NULL,
"email_verified" boolean DEFAULT false NOT NULL,
"email_token" character varying(64),
"email_token_expires" timestamp without time zone,
"email_token_role" integer
);
ALTER TABLE "auth_info" OWNER TO "postgres";
--
-- TOC entry 187 (class 1259 OID 53471)
-- Name: auth_info_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE "auth_info_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE "auth_info_id_seq" OWNER TO "postgres";
--
-- TOC entry 2406 (class 0 OID 0)
-- Dependencies: 187
-- Name: auth_info_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE "auth_info_id_seq" OWNED BY "auth_info"."id";
--
-- TOC entry 192 (class 1259 OID 53505)
-- Name: auth_token; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "auth_token" (
"id" integer NOT NULL,
"auth_info_id" bigint,
"value" character varying(64) NOT NULL,
"expires" timestamp without time zone NOT NULL
);
ALTER TABLE "auth_token" OWNER TO "postgres";
--
-- TOC entry 191 (class 1259 OID 53503)
-- Name: auth_token_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE "auth_token_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE "auth_token_id_seq" OWNER TO "postgres";
--
-- TOC entry 2407 (class 0 OID 0)
-- Dependencies: 191
-- Name: auth_token_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE "auth_token_id_seq" OWNED BY "auth_token"."id";
--
-- TOC entry 183 (class 1259 OID 53415)
-- Name: stat; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "stat" (
"id" integer NOT NULL,
"owner" integer DEFAULT 1 NOT NULL,
"group" integer DEFAULT "default_group_id"() NOT NULL,
"unixperms" integer DEFAULT "unix_to_numeric"('764'::character varying) NOT NULL,
"status" integer DEFAULT 0 NOT NULL,
"name" "text" NOT NULL,
"created" timestamp without time zone DEFAULT "now"() NOT NULL,
"updated" timestamp without time zone
);
ALTER TABLE "stat" OWNER TO "postgres";
--
-- TOC entry 2408 (class 0 OID 0)
-- Dependencies: 183
-- Name: COLUMN "stat"."id"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "stat"."id" IS 'unique id for all objects in database';
--
-- TOC entry 2409 (class 0 OID 0)
-- Dependencies: 183
-- Name: COLUMN "stat"."owner"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "stat"."owner" IS 'uid of object''s owner';
--
-- TOC entry 2410 (class 0 OID 0)
-- Dependencies: 183
-- Name: COLUMN "stat"."group"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "stat"."group" IS 'groups of object';
--
-- TOC entry 2411 (class 0 OID 0)
-- Dependencies: 183
-- Name: COLUMN "stat"."unixperms"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "stat"."unixperms" IS 'Unixpermissions';
--
-- TOC entry 2412 (class 0 OID 0)
-- Dependencies: 183
-- Name: COLUMN "stat"."status"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "stat"."status" IS 'status in which object is in (login, logout, removed etc)';
--
-- TOC entry 198 (class 1259 OID 53556)
-- Name: category; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "category" (
"parent_id" integer,
"description" "text",
"parent_path" "ltree",
CONSTRAINT "category_description_check" CHECK (("length"("description") < 100000))
)
INHERITS ("stat");
ALTER TABLE "category" OWNER TO "postgres";
--
-- TOC entry 2413 (class 0 OID 0)
-- Dependencies: 198
-- Name: TABLE "category"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE "category" IS 'categories of items';
--
-- TOC entry 179 (class 1259 OID 53382)
-- Name: group; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "group" (
"gid" integer NOT NULL,
"name" "text" NOT NULL,
"description" "text",
"created" timestamp without time zone DEFAULT "now"() NOT NULL,
"updated" timestamp without time zone
);
ALTER TABLE "group" OWNER TO "postgres";
--
-- TOC entry 178 (class 1259 OID 53380)
-- Name: group_gid_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE "group_gid_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE "group_gid_seq" OWNER TO "postgres";
--
-- TOC entry 2414 (class 0 OID 0)
-- Dependencies: 178
-- Name: group_gid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE "group_gid_seq" OWNED BY "group"."gid";
--
-- TOC entry 185 (class 1259 OID 53449)
-- Name: implemented_action; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "implemented_action" (
"table_name" "text" NOT NULL,
"action" "text" NOT NULL,
"status" integer NOT NULL
);
ALTER TABLE "implemented_action" OWNER TO "postgres";
--
-- TOC entry 200 (class 1259 OID 53614)
-- Name: inventory; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "inventory" (
"description" "text",
CONSTRAINT "chk_inventory_name_length" CHECK (("length"("name") < 100)),
CONSTRAINT "inventory_description_check" CHECK (("length"("description") < 100000))
)
INHERITS ("stat");
ALTER TABLE "inventory" OWNER TO "postgres";
--
-- TOC entry 199 (class 1259 OID 53585)
-- Name: item; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "item" (
"category_id" integer NOT NULL,
"symbol" "text" NOT NULL,
"original_symbol" "text",
"producer" "text",
"visibility" character varying(64) DEFAULT 'global'::character varying NOT NULL,
"attributes" "jsonb" DEFAULT '{}'::"jsonb" NOT NULL,
"description" "text"
)
INHERITS ("stat");
ALTER TABLE "item" OWNER TO "postgres";
--
-- TOC entry 186 (class 1259 OID 53457)
-- Name: privilege; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "privilege" (
"role" character varying(30) NOT NULL,
"who" integer DEFAULT 0 NOT NULL,
"action" "text" NOT NULL,
"type" character varying(30) NOT NULL,
"related_table_name" character varying(100) NOT NULL,
"related_object_uid" integer DEFAULT 0 NOT NULL
);
ALTER TABLE "privilege" OWNER TO "postgres";
--
-- TOC entry 2415 (class 0 OID 0)
-- Dependencies: 186
-- Name: COLUMN "privilege"."role"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "privilege"."role" IS 'specifies whether the privilege is granted to a user, a group, or in the case of an “object” privilege, the object’s owner or owner_group. A further special case, in my system, is “self.”';
--
-- TOC entry 2416 (class 0 OID 0)
-- Dependencies: 186
-- Name: COLUMN "privilege"."who"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "privilege"."who" IS 'is needed if role is user or group, and holds the user or group ID to which the privilege is granted.';
--
-- TOC entry 2417 (class 0 OID 0)
-- Dependencies: 186
-- Name: COLUMN "privilege"."action"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "privilege"."action" IS 'is the action the privilege grants. This is always required.';
--
-- TOC entry 2418 (class 0 OID 0)
-- Dependencies: 186
-- Name: COLUMN "privilege"."type"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "privilege"."type" IS 'specifies whether the privilege is “object”, “table”, or “global.”';
--
-- TOC entry 2419 (class 0 OID 0)
-- Dependencies: 186
-- Name: COLUMN "privilege"."related_table_name"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "privilege"."related_table_name" IS 'holds the name of the table to which the privilege applies. This is always required, though in the case of a “self” privilege it’s redundant because a “self” privilege always applies to the t_user table.';
--
-- TOC entry 2420 (class 0 OID 0)
-- Dependencies: 186
-- Name: COLUMN "privilege"."related_object_uid"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "privilege"."related_object_uid" IS 'stores the ID of the object to which the privilege applies, if it’s an object privilege. This has no meaning for table and global privileges, of course. The one applies to a table, not an object, and the second applies to all rows in a table, so an ID is immaterial. This is also not used for self privileges, because by definition a self privilege has to apply to the user requesting permission to do something.';
--
-- TOC entry 182 (class 1259 OID 53413)
-- Name: stat_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE "stat_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE "stat_id_seq" OWNER TO "postgres";
--
-- TOC entry 2421 (class 0 OID 0)
-- Dependencies: 182
-- Name: stat_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE "stat_id_seq" OWNED BY "stat"."id";
--
-- TOC entry 177 (class 1259 OID 53370)
-- Name: system_info; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "system_info" (
"id" integer NOT NULL,
"name" "text",
"value" "jsonb",
"when" timestamp without time zone
);
ALTER TABLE "system_info" OWNER TO "postgres";
--
-- TOC entry 2422 (class 0 OID 0)
-- Dependencies: 177
-- Name: TABLE "system_info"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE "system_info" IS 'table introduced to save information about system e.g. actual db version / application version etc';
--
-- TOC entry 176 (class 1259 OID 53368)
-- Name: system_info_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE "system_info_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE "system_info_id_seq" OWNER TO "postgres";
--
-- TOC entry 2423 (class 0 OID 0)
-- Dependencies: 176
-- Name: system_info_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE "system_info_id_seq" OWNED BY "system_info"."id";
--
-- TOC entry 181 (class 1259 OID 53399)
-- Name: user; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "user" (
"uid" integer NOT NULL,
"group" integer DEFAULT "default_users_group_id"() NOT NULL,
"status" integer DEFAULT 0 NOT NULL,
"full_name" "text" NOT NULL,
"created" timestamp without time zone DEFAULT "now"() NOT NULL,
"updated" timestamp without time zone,
"config" "json" DEFAULT '{}'::"json" NOT NULL,
"auth_info_id" bigint
);
ALTER TABLE "user" OWNER TO "postgres";
--
-- TOC entry 175 (class 1259 OID 50773)
-- Name: user_action; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "user_action" (
"id" integer NOT NULL,
"name" "text"
);
ALTER TABLE "user_action" OWNER TO "postgres";
--
-- TOC entry 2424 (class 0 OID 0)
-- Dependencies: 175
-- Name: TABLE "user_action"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE "user_action" IS 'action that user can take (like login/logout/config change?)';
--
-- TOC entry 2425 (class 0 OID 0)
-- Dependencies: 175
-- Name: COLUMN "user_action"."name"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "user_action"."name" IS 'action name';
--
-- TOC entry 174 (class 1259 OID 50771)
-- Name: user_action_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE "user_action_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE "user_action_id_seq" OWNER TO "postgres";
--
-- TOC entry 2426 (class 0 OID 0)
-- Dependencies: 174
-- Name: user_action_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE "user_action_id_seq" OWNED BY "user_action"."id";
--
-- TOC entry 196 (class 1259 OID 53532)
-- Name: user_audit; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "user_audit" (
"id" integer NOT NULL,
"user_id" integer NOT NULL,
"action_id" integer NOT NULL,
"data" "jsonb",
"when" timestamp without time zone DEFAULT "now"()
);
ALTER TABLE "user_audit" OWNER TO "postgres";
--
-- TOC entry 2427 (class 0 OID 0)
-- Dependencies: 196
-- Name: TABLE "user_audit"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE "user_audit" IS 'saves user actions like login/logout';
--
-- TOC entry 2428 (class 0 OID 0)
-- Dependencies: 196
-- Name: COLUMN "user_audit"."data"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "user_audit"."data" IS 'data column contains information about taken action (if login was successful? if not, from what ip this action was taken?)';
--
-- TOC entry 194 (class 1259 OID 53519)
-- Name: user_audit_action; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "user_audit_action" (
"id" integer NOT NULL,
"name" "text"
);
ALTER TABLE "user_audit_action" OWNER TO "postgres";
--
-- TOC entry 2429 (class 0 OID 0)
-- Dependencies: 194
-- Name: TABLE "user_audit_action"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE "user_audit_action" IS 'action that user can take (like login/logout/config change?)';
--
-- TOC entry 2430 (class 0 OID 0)
-- Dependencies: 194
-- Name: COLUMN "user_audit_action"."name"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN "user_audit_action"."name" IS 'action name';
--
-- TOC entry 193 (class 1259 OID 53517)
-- Name: user_audit_action_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE "user_audit_action_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE "user_audit_action_id_seq" OWNER TO "postgres";
--
-- TOC entry 2431 (class 0 OID 0)
-- Dependencies: 193
-- Name: user_audit_action_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE "user_audit_action_id_seq" OWNED BY "user_audit_action"."id";
--
-- TOC entry 195 (class 1259 OID 53530)
-- Name: user_audit_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE "user_audit_id_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE "user_audit_id_seq" OWNER TO "postgres";
--
-- TOC entry 2432 (class 0 OID 0)
-- Dependencies: 195
-- Name: user_audit_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE "user_audit_id_seq" OWNED BY "user_audit"."id";
--
-- TOC entry 197 (class 1259 OID 53553)
-- Name: user_groups; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "user_groups" (
"uid" integer NOT NULL,
"gid" integer NOT NULL
);
ALTER TABLE "user_groups" OWNER TO "postgres";
--
-- TOC entry 201 (class 1259 OID 53636)
-- Name: user_inventory; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE "user_inventory" (
"user_id" integer NOT NULL,
"inventory_id" integer NOT NULL
);
ALTER TABLE "user_inventory" OWNER TO "postgres";
--
-- TOC entry 180 (class 1259 OID 53397)
-- Name: user_uid_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE "user_uid_seq"
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE "user_uid_seq" OWNER TO "postgres";
--
-- TOC entry 2433 (class 0 OID 0)
-- Dependencies: 180
-- Name: user_uid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE "user_uid_seq" OWNED BY "user"."uid";
--
-- TOC entry 2155 (class 2604 OID 53492)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "auth_identity" ALTER COLUMN "id" SET DEFAULT "nextval"('"auth_identity_id_seq"'::"regclass");
--
-- TOC entry 2153 (class 2604 OID 53476)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "auth_info" ALTER COLUMN "id" SET DEFAULT "nextval"('"auth_info_id_seq"'::"regclass");
--
-- TOC entry 2156 (class 2604 OID 53508)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "auth_token" ALTER COLUMN "id" SET DEFAULT "nextval"('"auth_token_id_seq"'::"regclass");
--
-- TOC entry 2160 (class 2604 OID 53559)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "category" ALTER COLUMN "id" SET DEFAULT "nextval"('"stat_id_seq"'::"regclass");
--
-- TOC entry 2161 (class 2604 OID 53560)
-- Name: owner; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "category" ALTER COLUMN "owner" SET DEFAULT 1;
--
-- TOC entry 2162 (class 2604 OID 53561)
-- Name: group; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "category" ALTER COLUMN "group" SET DEFAULT "default_group_id"();
--
-- TOC entry 2163 (class 2604 OID 53562)
-- Name: unixperms; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "category" ALTER COLUMN "unixperms" SET DEFAULT "unix_to_numeric"('764'::character varying);
--
-- TOC entry 2164 (class 2604 OID 53563)
-- Name: status; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "category" ALTER COLUMN "status" SET DEFAULT 0;
--
-- TOC entry 2165 (class 2604 OID 53564)
-- Name: created; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "category" ALTER COLUMN "created" SET DEFAULT "now"();
--
-- TOC entry 2137 (class 2604 OID 53385)
-- Name: gid; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "group" ALTER COLUMN "gid" SET DEFAULT "nextval"('"group_gid_seq"'::"regclass");
--
-- TOC entry 2175 (class 2604 OID 53617)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "inventory" ALTER COLUMN "id" SET DEFAULT "nextval"('"stat_id_seq"'::"regclass");
--
-- TOC entry 2176 (class 2604 OID 53618)
-- Name: owner; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "inventory" ALTER COLUMN "owner" SET DEFAULT 1;
--
-- TOC entry 2177 (class 2604 OID 53619)
-- Name: group; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "inventory" ALTER COLUMN "group" SET DEFAULT "default_group_id"();
--
-- TOC entry 2178 (class 2604 OID 53620)
-- Name: unixperms; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "inventory" ALTER COLUMN "unixperms" SET DEFAULT "unix_to_numeric"('764'::character varying);
--
-- TOC entry 2179 (class 2604 OID 53621)
-- Name: status; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "inventory" ALTER COLUMN "status" SET DEFAULT 0;
--
-- TOC entry 2180 (class 2604 OID 53622)
-- Name: created; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "inventory" ALTER COLUMN "created" SET DEFAULT "now"();
--
-- TOC entry 2167 (class 2604 OID 53588)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "item" ALTER COLUMN "id" SET DEFAULT "nextval"('"stat_id_seq"'::"regclass");
--
-- TOC entry 2168 (class 2604 OID 53589)
-- Name: owner; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "item" ALTER COLUMN "owner" SET DEFAULT 1;
--
-- TOC entry 2169 (class 2604 OID 53590)
-- Name: group; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "item" ALTER COLUMN "group" SET DEFAULT "default_group_id"();
--
-- TOC entry 2170 (class 2604 OID 53591)
-- Name: unixperms; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "item" ALTER COLUMN "unixperms" SET DEFAULT "unix_to_numeric"('764'::character varying);
--
-- TOC entry 2171 (class 2604 OID 53592)
-- Name: status; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "item" ALTER COLUMN "status" SET DEFAULT 0;
--
-- TOC entry 2172 (class 2604 OID 53593)
-- Name: created; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "item" ALTER COLUMN "created" SET DEFAULT "now"();
--
-- TOC entry 2144 (class 2604 OID 53418)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "stat" ALTER COLUMN "id" SET DEFAULT "nextval"('"stat_id_seq"'::"regclass");
--
-- TOC entry 2136 (class 2604 OID 53373)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "system_info" ALTER COLUMN "id" SET DEFAULT "nextval"('"system_info_id_seq"'::"regclass");
--
-- TOC entry 2139 (class 2604 OID 53402)
-- Name: uid; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "user" ALTER COLUMN "uid" SET DEFAULT "nextval"('"user_uid_seq"'::"regclass");
--
-- TOC entry 2135 (class 2604 OID 50776)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "user_action" ALTER COLUMN "id" SET DEFAULT "nextval"('"user_action_id_seq"'::"regclass");
--
-- TOC entry 2158 (class 2604 OID 53535)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "user_audit" ALTER COLUMN "id" SET DEFAULT "nextval"('"user_audit_id_seq"'::"regclass");
--
-- TOC entry 2157 (class 2604 OID 53522)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "user_audit_action" ALTER COLUMN "id" SET DEFAULT "nextval"('"user_audit_action_id_seq"'::"regclass");
--
-- TOC entry 2376 (class 0 OID 53440)
-- Dependencies: 184
-- Data for Name: action; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 2382 (class 0 OID 53489)
-- Dependencies: 190
-- Data for Name: auth_identity; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "auth_identity" ("id", "auth_info_id", "provider", "identity") VALUES (2, 1, 'loginname', 'bartoszek');
INSERT INTO "auth_identity" ("id", "auth_info_id", "provider", "identity") VALUES (4, 2, 'loginname', 'bartoszek2');
INSERT INTO "auth_identity" ("id", "auth_info_id", "provider", "identity") VALUES (5, 3, 'loginname', 'cycek');
INSERT INTO "auth_identity" ("id", "auth_info_id", "provider", "identity") VALUES (6, 4, 'google', '107412763226032713372');
INSERT INTO "auth_identity" ("id", "auth_info_id", "provider", "identity") VALUES (7, 4, 'loginname', 'cszawisza');
--
-- TOC entry 2434 (class 0 OID 0)
-- Dependencies: 189
-- Name: auth_identity_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('"auth_identity_id_seq"', 7, true);
--
-- TOC entry 2380 (class 0 OID 53473)
-- Dependencies: 188
-- Data for Name: auth_info; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "auth_info" ("id", "user_uid", "password_hash", "password_method", "password_salt", "email", "email_verified", "email_token", "email_token_expires", "email_token_role") VALUES (3, 3, '$2y$07$UhTSOR/JS0nqZSb/ZFTFYOxaJDbumLtaAAIvq2Kg2D6qNuTO1JosW', 'bcrypt', 'Z5TA0KSjlmGAluGi', 'sdfsfd@sdf.sdf', true, '', '1970-01-01 00:00:00', 1);
INSERT INTO "auth_info" ("id", "user_uid", "password_hash", "password_method", "password_salt", "email", "email_verified", "email_token", "email_token_expires", "email_token_role") VALUES (2, 2, '$2y$07$KEHvMEyxZ0TpaA7pLVTOaugS4fqJ0bIIP.WQmnlTRrQKJwtBgCX7e', 'bcrypt', '0bq8m3oekp/k5uPs', 'b.w2@linux.pl', true, '', '1970-01-01 00:00:00', 1);
INSERT INTO "auth_info" ("id", "user_uid", "password_hash", "password_method", "password_salt", "email", "email_verified", "email_token", "email_token_expires", "email_token_role") VALUES (1, 1, '$2y$07$RyytUhDhLDbAPjf0b0r2Y.dsg.FlQ7L.xzWHMmoelI81u0MfBrW7q', 'bcrypt', 'OM/Z1c4WBFXvwkxh', 'b.w@linux.pl', true, '', '1970-01-01 00:00:00', 1);
INSERT INTO "auth_info" ("id", "user_uid", "password_hash", "password_method", "password_salt", "email", "email_verified", "email_token", "email_token_expires", "email_token_role") VALUES (4, 4, 'NONE', 'NONE', 'NONE', 'cszawisza@gmail.com', true, NULL, NULL, NULL);
--
-- TOC entry 2435 (class 0 OID 0)
-- Dependencies: 187
-- Name: auth_info_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('"auth_info_id_seq"', 4, true);
--
-- TOC entry 2384 (class 0 OID 53505)
-- Dependencies: 192
-- Data for Name: auth_token; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "auth_token" ("id", "auth_info_id", "value", "expires") VALUES (12, 1, 'VV5ivarouA7d5eTb96jHRw==', '2017-04-03 10:40:00.956826');
INSERT INTO "auth_token" ("id", "auth_info_id", "value", "expires") VALUES (13, 1, 'PpK7oOuYcN6AsgtLqnuPZg==', '2017-04-05 06:30:38.471052');
INSERT INTO "auth_token" ("id", "auth_info_id", "value", "expires") VALUES (14, 1, 'tFbkfl4J7Xm1jBBtOUsj1g==', '2017-04-05 10:27:40.846808');
INSERT INTO "auth_token" ("id", "auth_info_id", "value", "expires") VALUES (11, 1, 'GbIv0mxAaewSYM/bk2GWgw==', '2017-04-03 10:39:46.316648');
--
-- TOC entry 2436 (class 0 OID 0)
-- Dependencies: 191
-- Name: auth_token_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('"auth_token_id_seq"', 14, true);
--
-- TOC entry 2390 (class 0 OID 53556)
-- Dependencies: 198
-- Data for Name: category; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "category" ("id", "owner", "group", "unixperms", "status", "name", "created", "updated", "parent_id", "description", "parent_path") VALUES (1, 1, 1, 500, 0, 'root', '2017-03-20 13:54:30.544567', NULL, NULL, NULL, 'root');
INSERT INTO "category" ("id", "owner", "group", "unixperms", "status", "name", "created", "updated", "parent_id", "description", "parent_path") VALUES (2, 1, 1, 500, 0, 'group_1.1', '2017-03-20 13:54:49.904114', NULL, 1, NULL, 'root.1');
INSERT INTO "category" ("id", "owner", "group", "unixperms", "status", "name", "created", "updated", "parent_id", "description", "parent_path") VALUES (3, 1, 1, 500, 0, 'group_1.2', '2017-03-20 13:54:58.671842', '2017-03-20 13:57:14.353654', 1, NULL, 'root.1');
INSERT INTO "category" ("id", "owner", "group", "unixperms", "status", "name", "created", "updated", "parent_id", "description", "parent_path") VALUES (4, 1, 1, 500, 0, 'group_2.1', '2017-03-20 13:57:28.304537', NULL, 3, NULL, 'root.1.3');
INSERT INTO "category" ("id", "owner", "group", "unixperms", "status", "name", "created", "updated", "parent_id", "description", "parent_path") VALUES (5, 1, 1, 500, 0, 'group_2.2', '2017-03-20 13:57:35.248088', '2017-03-20 13:57:44.400526', 3, NULL, 'root.1.3');
--
-- TOC entry 2371 (class 0 OID 53382)
-- Dependencies: 179
-- Data for Name: group; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "group" ("gid", "name", "description", "created", "updated") VALUES (1, 'nogroup', NULL, '2017-02-28 23:15:11.321875', NULL);
INSERT INTO "group" ("gid", "name", "description", "created", "updated") VALUES (2, 'admins', NULL, '2017-02-28 23:15:11.321875', NULL);
INSERT INTO "group" ("gid", "name", "description", "created", "updated") VALUES (3, 'moderators', NULL, '2017-02-28 23:15:11.321875', NULL);
INSERT INTO "group" ("gid", "name", "description", "created", "updated") VALUES (4, 'users', NULL, '2017-02-28 23:15:11.321875', NULL);
--
-- TOC entry 2437 (class 0 OID 0)
-- Dependencies: 178
-- Name: group_gid_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('"group_gid_seq"', 4, true);
--
-- TOC entry 2377 (class 0 OID 53449)
-- Dependencies: 185
-- Data for Name: implemented_action; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 2392 (class 0 OID 53614)
-- Dependencies: 200
-- Data for Name: inventory; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 2391 (class 0 OID 53585)
-- Dependencies: 199
-- Data for Name: item; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 2378 (class 0 OID 53457)
-- Dependencies: 186
-- Data for Name: privilege; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 2375 (class 0 OID 53415)
-- Dependencies: 183
-- Data for Name: stat; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 2438 (class 0 OID 0)
-- Dependencies: 182
-- Name: stat_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('"stat_id_seq"', 5, true);
--
-- TOC entry 2369 (class 0 OID 53370)
-- Dependencies: 177
-- Data for Name: system_info; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 2439 (class 0 OID 0)
-- Dependencies: 176
-- Name: system_info_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('"system_info_id_seq"', 1, false);
--
-- TOC entry 2373 (class 0 OID 53399)
-- Dependencies: 181
-- Data for Name: user; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "user" ("uid", "group", "status", "full_name", "created", "updated", "config", "auth_info_id") VALUES (1, 4, -1, 'nnLWcfdKUJvEtPGLnsVlqVxcMcZaAhcnvOkxtnIoWdsQSYCGRXrhsQkfsjGsriGnWqlRETGbxYrQwtXnqoVkFGQXQWQIewVCnHsSAYtXwLoTGlHWAcHGJwDZsUHxqcAEJSWJQQhmcvGIhNehPMNYiRXcLEabgAfprDZITguVcBdjniqDUeCDVyfGEfhkFNBwQAFKgAFiajrOrirMmtoIsunWaVhgJidyIJioiowKxoxpwpbkJQScLgyMCgSkovkw', '2017-02-28 23:19:32.036752', NULL, '{}', NULL);
INSERT INTO "user" ("uid", "group", "status", "full_name", "created", "updated", "config", "auth_info_id") VALUES (2, 4, -1, 'QJJHHyGsDQyHkNtLMkggvVfkQdHCqfZHOiPWHuoLMOSwBMhNXOTTJYeZcLBTraAfjobqkRbwFtTGgBsEolwyKBxMNAfeAgKjuMBfdccIwvODWHglSDkCFIPrIUWJaGsWSTCVWFdTaRWxYcjqfttkCicLDYtefMBXgctDhXvJPrgnUpFAjYLLgnWjmQnSDOpjrJmyHIhWAnjUdOtmmFyTtudGlRYognYxXkwesFBSskmXAGjMMiGfeJlQajFgXDEu', '2017-02-28 23:26:53.144596', NULL, '{}', NULL);
INSERT INTO "user" ("uid", "group", "status", "full_name", "created", "updated", "config", "auth_info_id") VALUES (3, 4, -1, 'ASOutqpRwQyBLAblkHBPCegdDpOEmkQnDeIXVxornnSAntLxaMmdQsHTjuxWFOjIsSFoQTgFIAeVTptubgYrAFljAjfeXpmQISeYllDTLhPeXJZyPXRPcDYCmFgjutADlFBXqeRCMggKPgieEAuHcTioxpYSjyVVEwSubJWNPcweiGKNfeUJXcxvSXObvkWAHPUIYQuossTcYDPEHjNFllBFiPGeZdEgsYOqOKfHcZJBCYFKhsotepYmFeRfIVla', '2017-02-28 23:42:26.081482', NULL, '{}', NULL);
INSERT INTO "user" ("uid", "group", "status", "full_name", "created", "updated", "config", "auth_info_id") VALUES (4, 4, -1, 'bBIFagCgOmXHessHRKAouGQtUeKccHodhWiJDLPRxMxcFQJvbKlvQbpKfBmhhBMPYUYBfNseZqgEhqBiamEQntaTUnCboOrNIpooEhsdxyifPjnpvrGjMHDGuFijsaXCQMQUTJYRIHXxQknMdUVPbYVvEEFWECYunOoHwNZftWdKHRvKLRZMQVIUZnQEppyednlbbkHVHKGPBbZNtZZjuIdtvtxlJwQnLcoMNvhufNKgpJtJitsdbWYXQviaTZOE', '2017-03-05 18:21:28.167611', NULL, '{}', NULL);
--
-- TOC entry 2367 (class 0 OID 50773)
-- Dependencies: 175
-- Data for Name: user_action; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "user_action" ("id", "name") VALUES (1, 'login');
INSERT INTO "user_action" ("id", "name") VALUES (2, 'logout');
--
-- TOC entry 2440 (class 0 OID 0)
-- Dependencies: 174
-- Name: user_action_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('"user_action_id_seq"', 2, true);
--
-- TOC entry 2388 (class 0 OID 53532)
-- Dependencies: 196
-- Data for Name: user_audit; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (1, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "pl", "user_address": "127.0.0.1"}', '2017-03-01 00:33:56.660924');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (2, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:39:06.72963');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (3, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:39:55.862887');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (4, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:40:31.971746');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (5, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:41:30.442883');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (6, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:45:36.351011');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (7, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:46:26.770444');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (8, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:46:54.700519');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (9, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:47:21.825734');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (10, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:47:32.064247');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (11, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:50:15.153698');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (12, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:56:09.552125');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (14, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 02:56:55.959427');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (16, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 03:00:15.040877');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (17, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?_=/app&wtd=t14SelQf701r7T8E", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 03:01:25.105914');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (18, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 03:04:30.485241');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (19, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 03:04:36.502765');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (20, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 03:10:39.695932');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (21, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 03:15:10.793435');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (22, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 03:15:50.99798');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (23, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 03:16:35.529289');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (24, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?_=/app&wtd=nUWRbasO4GKtUqDh", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 03:17:06.945366');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (25, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 03:19:07.682648');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (26, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-01 03:23:55.286873');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (27, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 16:43:05.449751');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (28, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 16:46:10.797405');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (29, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 16:46:20.710614');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (30, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 18:00:53.050438');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (31, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 18:01:00.86242');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (32, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 18:10:05.895141');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (33, 4, 1, '{"method": "password", "status": "failed", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 21:02:38.526813');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (34, 4, 1, '{"method": "password", "status": "failed", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 21:02:43.604901');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (35, 4, 1, '{"method": "password", "status": "failed", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 21:02:59.277478');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (36, 4, 1, '{"method": "password", "status": "failed", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 21:03:13.244333');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (37, 4, 1, '{"method": "password", "status": "failed", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 21:03:14.573032');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (38, 4, 1, '{"method": "password", "status": "failed", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 21:03:15.492847');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (39, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-05 21:04:34.669675');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (40, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 08:48:26.481391');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (41, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 08:53:03.033575');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (42, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 13:54:42.618725');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (43, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 13:55:27.920412');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (44, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 13:57:31.95547');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (45, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 14:06:53.044808');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (46, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?_=/app&wtd=6B0ZbjxiQ6oFqBO7", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 14:07:40.915477');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (47, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?wtd=TsgnthqYweeCNMjp", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 14:22:27.836499');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (48, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 15:23:48.44734');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (49, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 15:33:12.710869');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (50, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 15:36:20.622791');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (51, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?_=/app&wtd=4Dao4h9ywofpGlII", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 18:48:49.541888');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (52, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 20:14:08.784815');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (53, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-14 20:14:53.280686');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (54, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 09:48:05.556041');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (55, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 09:48:57.338041');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (56, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 09:50:59.644533');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (57, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 09:51:37.355044');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (58, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?_=/app&wtd=VUBeTrnK9pD3iCgJ", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 15:41:19.424642');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (59, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 15:41:57.261955');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (60, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:11:50.399374');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (61, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?_=/app&wtd=TCS1VjYdoSKk3saZ", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:12:10.407');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (62, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:13:29.070432');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (63, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:14:27.302436');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (64, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:16:01.750563');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (65, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:16:40.734532');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (66, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:17:25.045743');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (67, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:17:54.751217');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (68, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:23:10.440777');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (69, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:23:39.127356');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (70, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?_=/app&wtd=9efKu8YaDSwH2qvB", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:28:59.527876');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (71, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:48:12.487509');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (72, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 16:48:41.999181');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (73, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 18:16:21.706734');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (74, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 18:17:32.483862');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (75, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 18:21:53.87605');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (76, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?_=/app&wtd=okFf2n8gWW7LvxYp", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 18:24:00.491956');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (77, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=aodLbpZzhEjroaaV", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-15 19:48:32.515838');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (78, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-18 11:41:28.139788');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (79, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-18 11:46:39.62125');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (80, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?&wtd=a4JcLM5o0INHe89r", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-18 16:22:40.798217');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (81, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-18 20:29:22.870187');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (82, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-18 20:29:45.253706');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (83, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:28:04.467934');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (84, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:29:57.473212');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (85, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:31:22.888381');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (86, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:42:35.592017');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (87, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:44:44.061425');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (88, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:49:04.754533');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (89, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:50:44.870042');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (90, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:51:31.638254');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (91, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:52:14.957428');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (92, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:52:57.985233');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (93, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:54:06.633646');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (94, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?&wtd=iSGaG7xcpKeEUvsQ", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:54:08.911726');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (95, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=YkX4rG2yKlZgRSYl", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:54:23.658938');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (96, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:55:50.859404');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (97, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?wtd=ZuH0G7QduAkd6N06", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:56:03.451574');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (98, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 05:58:51.617171');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (99, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 06:03:13.945479');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (100, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 06:32:27.514018');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (101, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 06:32:54.038076');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (102, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 07:23:59.624031');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (103, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.19 Safari/537.36", "user_locale": "pl-PL", "user_address": "127.0.0.1"}', '2017-03-19 07:24:19.011343');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (104, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 07:48:19.220155');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (105, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 07:49:25.699686');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (106, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 07:50:43.534152');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (107, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?wtd=VWxrCR7V4VnRnpcL", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 07:50:50.095778');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (108, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 07:54:00.340393');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (109, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 07:58:42.989726');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (110, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 07:59:21.228705');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (111, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 07:59:56.421944');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (112, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 08:00:49.565322');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (113, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 08:01:42.767229');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (114, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:20:00.464578');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (115, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?wtd=iyUJGv9S1qaQlR9j", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:20:15.103745');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (116, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:26:32.328959');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (117, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:26:53.040644');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (118, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:27:23.633343');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (119, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=JOhESgVU6oFTBEd9", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:27:43.943404');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (120, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:28:07.701013');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (121, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:29:09.224912');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (122, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=KpPCbTKivTdkkRtH", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:29:12.839989');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (123, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=LC8jSvWzd948CCRs", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:29:23.658118');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (124, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:30:04.158893');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (125, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:36:20.494089');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (126, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?&wtd=f5s7pI5aJZfRUjeK", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:36:28.512721');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (127, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:38:32.002329');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (128, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=LC8jSvWzd948CCRs", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:39:42.669436');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (129, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:39:45.6113');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (130, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:41:22.396479');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (131, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:42:01.175015');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (132, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 09:42:21.037402');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (133, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?&wtd=42JzBF4PCpIbe3Xs", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:11:21.140892');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (134, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?&wtd=77RhxIwpO22YYKip", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:11:50.053526');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (135, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=77RhxIwpO22YYKip", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:12:10.905463');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (136, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=gzvZPAZ3eGi7uV6H", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:12:31.213832');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (137, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:14:25.534037');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (138, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=rLQTfDdFX70C9oQ3", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:14:45.274186');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (139, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:18:25.312056');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (140, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=g1yRjM2RixmKIik5", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:18:28.541755');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (141, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:20:58.056392');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (142, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:23:40.367485');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (143, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=Ody0PqDvJ43Uz8vB", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:23:42.759299');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (144, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:24:36.55889');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (145, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=Xq6De6OwhJ0CJGCn", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:24:38.772644');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (146, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=Xq6De6OwhJ0CJGCn", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 10:29:12.760298');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (147, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 12:12:12.066326');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (148, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=EyjsUgVvy0GDal4G", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 12:12:16.566624');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (149, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 13:00:37.73483');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (150, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=0eWKEZaF1dW173Av", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 13:01:05.726897');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (151, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 14:01:07.11546');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (152, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 14:02:07.830111');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (153, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 14:03:09.313083');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (154, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=mrK57Ha2mv2Sef4o", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 14:03:11.53734');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (155, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 14:04:14.74716');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (156, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=WwzJEYKcWmohrhxn", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 14:04:16.809307');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (157, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-19 22:52:31.637753');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (158, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-20 01:50:13.421414');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (159, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-20 01:50:56.192402');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (160, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=8DCzr1l71HYo75eH", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-20 01:51:00.16237');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (161, 1, 1, '{"method": "token", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-20 01:52:39.741767');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (162, 1, 1, '{"method": "token", "status": "success", "referer": "http://localhost:8080/?wtd=pFc9TxeYcUMz9UFs", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-20 01:53:30.827566');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (163, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-20 01:54:58.200311');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (164, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-20 03:36:54.316898');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (165, 1, 1, '{"method": "password", "status": "success", "referer": "", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-20 05:47:01.751228');
INSERT INTO "user_audit" ("id", "user_id", "action_id", "data", "when") VALUES (166, 1, 1, '{"method": "password", "status": "success", "referer": "http://localhost:8080/?wtd=hkQx3Biz0sDCMV77", "url_scheme": "http", "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "user_locale": "en-US", "user_address": "127.0.0.1"}', '2017-03-20 05:47:15.808344');
--
-- TOC entry 2386 (class 0 OID 53519)
-- Dependencies: 194
-- Data for Name: user_audit_action; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "user_audit_action" ("id", "name") VALUES (1, 'login');
INSERT INTO "user_audit_action" ("id", "name") VALUES (2, 'logout');
--
-- TOC entry 2441 (class 0 OID 0)
-- Dependencies: 193
-- Name: user_audit_action_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('"user_audit_action_id_seq"', 2, true);
--
-- TOC entry 2442 (class 0 OID 0)
-- Dependencies: 195
-- Name: user_audit_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('"user_audit_id_seq"', 166, true);
--
-- TOC entry 2389 (class 0 OID 53553)
-- Dependencies: 197
-- Data for Name: user_groups; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 2393 (class 0 OID 53636)
-- Dependencies: 201
-- Data for Name: user_inventory; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- TOC entry 2443 (class 0 OID 0)
-- Dependencies: 180
-- Name: user_uid_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('"user_uid_seq"', 4, true);
--
-- TOC entry 2199 (class 2606 OID 53448)
-- Name: pk_action; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "action"
ADD CONSTRAINT "pk_action" PRIMARY KEY ("title", "apply_object");
--
-- TOC entry 2213 (class 2606 OID 53497)
-- Name: pk_auth_identity_id; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "auth_identity"
ADD CONSTRAINT "pk_auth_identity_id" PRIMARY KEY ("id");
--
-- TOC entry 2209 (class 2606 OID 53479)
-- Name: pk_auth_into_id; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "auth_info"
ADD CONSTRAINT "pk_auth_into_id" PRIMARY KEY ("id");
--
-- TOC entry 2216 (class 2606 OID 53510)
-- Name: pk_auth_token_id; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "auth_token"
ADD CONSTRAINT "pk_auth_token_id" PRIMARY KEY ("id");
--
-- TOC entry 2226 (class 2606 OID 53570)
-- Name: pk_category_uid; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "category"
ADD CONSTRAINT "pk_category_uid" PRIMARY KEY ("id");
--
-- TOC entry 2191 (class 2606 OID 53391)
-- Name: pk_group_gid; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "group"
ADD CONSTRAINT "pk_group_gid" PRIMARY KEY ("gid");
--
-- TOC entry 2201 (class 2606 OID 53456)
-- Name: pk_implemented_action; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "implemented_action"
ADD CONSTRAINT "pk_implemented_action" PRIMARY KEY ("table_name", "action", "status");
--
-- TOC entry 2233 (class 2606 OID 53629)
-- Name: pk_inventory; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "inventory"
ADD CONSTRAINT "pk_inventory" PRIMARY KEY ("id");
--
-- TOC entry 2230 (class 2606 OID 53600)
-- Name: pk_items; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "item"
ADD CONSTRAINT "pk_items" PRIMARY KEY ("id");
--
-- TOC entry 2207 (class 2606 OID 53466)
-- Name: pk_privilege; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "privilege"
ADD CONSTRAINT "pk_privilege" PRIMARY KEY ("role", "who", "action", "type", "related_table_name", "related_object_uid");
--
-- TOC entry 2197 (class 2606 OID 53428)
-- Name: pk_stat; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "stat"
ADD CONSTRAINT "pk_stat" PRIMARY KEY ("id");
--
-- TOC entry 2189 (class 2606 OID 53378)
-- Name: pk_system_info; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "system_info"
ADD CONSTRAINT "pk_system_info" PRIMARY KEY ("id");
--
-- TOC entry 2184 (class 2606 OID 50781)
-- Name: pk_user_action; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "user_action"
ADD CONSTRAINT "pk_user_action" PRIMARY KEY ("id");
--
-- TOC entry 2218 (class 2606 OID 53527)
-- Name: pk_user_audit_action_id; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "user_audit_action"
ADD CONSTRAINT "pk_user_audit_action_id" PRIMARY KEY ("id");
--
-- TOC entry 2223 (class 2606 OID 53541)
-- Name: pk_user_history_id; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "user_audit"
ADD CONSTRAINT "pk_user_history_id" PRIMARY KEY ("id");
--
-- TOC entry 2195 (class 2606 OID 53411)
-- Name: pk_user_uid; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "user"
ADD CONSTRAINT "pk_user_uid" PRIMARY KEY ("uid");
--
-- TOC entry 2235 (class 2606 OID 53640)
-- Name: user_inventory_pk; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "user_inventory"
ADD CONSTRAINT "user_inventory_pk" PRIMARY KEY ("inventory_id", "user_id");
--
-- TOC entry 2211 (class 2606 OID 53481)
-- Name: ux_auth_info_email; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "auth_info"
ADD CONSTRAINT "ux_auth_info_email" UNIQUE ("email");
--
-- TOC entry 2193 (class 2606 OID 53393)
-- Name: ux_group_name; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "group"
ADD CONSTRAINT "ux_group_name" UNIQUE ("name");
--
-- TOC entry 2186 (class 2606 OID 50783)
-- Name: ux_user_action_name; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "user_action"
ADD CONSTRAINT "ux_user_action_name" UNIQUE ("name");
--
-- TOC entry 2220 (class 2606 OID 53529)
-- Name: ux_user_audit_action_name; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY "user_audit_action"
ADD CONSTRAINT "ux_user_audit_action_name" UNIQUE ("name");
--
-- TOC entry 2214 (class 1259 OID 53516)
-- Name: ix_auth_token_value; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE INDEX "ix_auth_token_value" ON "auth_token" USING "btree" ("value");
--
-- TOC entry 2224 (class 1259 OID 53581)
-- Name: ix_category_parent_path; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE INDEX "ix_category_parent_path" ON "category" USING "gist" ("parent_path");
--
-- TOC entry 2228 (class 1259 OID 53611)
-- Name: ix_item_attributes; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE INDEX "ix_item_attributes" ON "item" USING "gin" ("attributes");
--
-- TOC entry 2202 (class 1259 OID 53469)
-- Name: ix_privilege_action; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE INDEX "ix_privilege_action" ON "privilege" USING "btree" ("action") WITH ("fillfactor"='100');
--
-- TOC entry 2203 (class 1259 OID 53467)
-- Name: ix_privilege_action_type; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE INDEX "ix_privilege_action_type" ON "privilege" USING "btree" ("action", "type") WITH ("fillfactor"='100');
--
-- TOC entry 2204 (class 1259 OID 53468)
-- Name: ix_privilege_related_table; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE INDEX "ix_privilege_related_table" ON "privilege" USING "btree" ("related_table_name") WITH ("fillfactor"='100');
--
-- TOC entry 2205 (class 1259 OID 53470)
-- Name: ix_privilege_type; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE INDEX "ix_privilege_type" ON "privilege" USING "btree" ("type") WITH ("fillfactor"='100');
--
-- TOC entry 2187 (class 1259 OID 53379)
-- Name: ix_system_info_name; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE INDEX "ix_system_info_name" ON "system_info" USING "btree" ("name") WITH ("fillfactor"='100');
--
-- TOC entry 2221 (class 1259 OID 53552)
-- Name: ix_user_history_data; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE INDEX "ix_user_history_data" ON "user_audit" USING "btree" ((("data" ->> 'status'::"text"))) WHERE (("data" ->> 'status'::"text") IS NOT NULL);
--
-- TOC entry 2227 (class 1259 OID 53582)
-- Name: ux_category_name; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE UNIQUE INDEX "ux_category_name" ON "category" USING "btree" ("parent_id", "name");
--
-- TOC entry 2231 (class 1259 OID 53612)
-- Name: ux_item; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
--
CREATE UNIQUE INDEX "ux_item" ON "item" USING "btree" ("name", "symbol");
--
-- TOC entry 2253 (class 2620 OID 53583)
-- Name: update_category_last_update; Type: TRIGGER; Schema: public; Owner: postgres
--
CREATE TRIGGER "update_category_last_update" BEFORE UPDATE ON "category" FOR EACH ROW EXECUTE PROCEDURE "last_update_column"();
--
-- TOC entry 2254 (class 2620 OID 53584)
-- Name: update_category_parent_path; Type: TRIGGER; Schema: public; Owner: postgres
--
CREATE TRIGGER "update_category_parent_path" BEFORE INSERT OR UPDATE ON "category" FOR EACH ROW EXECUTE PROCEDURE "update_category_parent_path"();
--
-- TOC entry 2256 (class 2620 OID 53635)
-- Name: update_inventory_last_update; Type: TRIGGER; Schema: public; Owner: postgres
--
CREATE TRIGGER "update_inventory_last_update" BEFORE UPDATE ON "inventory" FOR EACH ROW EXECUTE PROCEDURE "last_update_column"();
--
-- TOC entry 2255 (class 2620 OID 53613)
-- Name: update_item_last_update; Type: TRIGGER; Schema: public; Owner: postgres
--
CREATE TRIGGER "update_item_last_update" BEFORE UPDATE ON "item" FOR EACH ROW EXECUTE PROCEDURE "last_update_column"();
--
-- TOC entry 2252 (class 2620 OID 53439)
-- Name: update_stat_last_update; Type: TRIGGER; Schema: public; Owner: postgres
--
CREATE TRIGGER "update_stat_last_update" BEFORE UPDATE ON "stat" FOR EACH ROW EXECUTE PROCEDURE "last_update_column"();
--
-- TOC entry 2250 (class 2620 OID 53394)
-- Name: update_user_group_last_update; Type: TRIGGER; Schema: public; Owner: postgres
--
CREATE TRIGGER "update_user_group_last_update" BEFORE UPDATE ON "group" FOR EACH ROW EXECUTE PROCEDURE "last_update_column"();
--
-- TOC entry 2251 (class 2620 OID 53412)
-- Name: update_user_updated; Type: TRIGGER; Schema: public; Owner: postgres
--
CREATE TRIGGER "update_user_updated" BEFORE UPDATE ON "user" FOR EACH ROW EXECUTE PROCEDURE "last_update_column"();
--
-- TOC entry 2239 (class 2606 OID 53498)
-- Name: fk_auth_identity_auth_info; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "auth_identity"
ADD CONSTRAINT "fk_auth_identity_auth_info" FOREIGN KEY ("auth_info_id") REFERENCES "auth_info"("id") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
--
-- TOC entry 2238 (class 2606 OID 53482)
-- Name: fk_auth_info_user_uid; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "auth_info"
ADD CONSTRAINT "fk_auth_info_user_uid" FOREIGN KEY ("user_uid") REFERENCES "user"("uid") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
--
-- TOC entry 2240 (class 2606 OID 53511)
-- Name: fk_auth_token_auth_info_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "auth_token"
ADD CONSTRAINT "fk_auth_token_auth_info_id" FOREIGN KEY ("auth_info_id") REFERENCES "auth_info"("id") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
--
-- TOC entry 2243 (class 2606 OID 53571)
-- Name: fk_category_parent_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "category"
ADD CONSTRAINT "fk_category_parent_id" FOREIGN KEY ("parent_id") REFERENCES "category"("id") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
--
-- TOC entry 2244 (class 2606 OID 53576)
-- Name: fk_category_stat_owner; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "category"
ADD CONSTRAINT "fk_category_stat_owner" FOREIGN KEY ("owner") REFERENCES "user"("uid") DEFERRABLE;
--
-- TOC entry 2247 (class 2606 OID 53630)
-- Name: fk_inventory_owner; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "inventory"
ADD CONSTRAINT "fk_inventory_owner" FOREIGN KEY ("owner") REFERENCES "user"("uid") DEFERRABLE;
--
-- TOC entry 2245 (class 2606 OID 53601)
-- Name: fk_item_category; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "item"
ADD CONSTRAINT "fk_item_category" FOREIGN KEY ("category_id") REFERENCES "category"("id") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
--
-- TOC entry 2246 (class 2606 OID 53606)
-- Name: fk_item_user; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "item"
ADD CONSTRAINT "fk_item_user" FOREIGN KEY ("owner") REFERENCES "user"("uid") DEFERRABLE;
--
-- TOC entry 2237 (class 2606 OID 53434)
-- Name: fk_stat_primary_group; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "stat"
ADD CONSTRAINT "fk_stat_primary_group" FOREIGN KEY ("group") REFERENCES "group"("gid") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
--
-- TOC entry 2236 (class 2606 OID 53429)
-- Name: fk_stat_user; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "stat"
ADD CONSTRAINT "fk_stat_user" FOREIGN KEY ("owner") REFERENCES "user"("uid") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
--
-- TOC entry 2242 (class 2606 OID 53547)
-- Name: fk_user_history_user_action; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "user_audit"
ADD CONSTRAINT "fk_user_history_user_action" FOREIGN KEY ("action_id") REFERENCES "user_audit_action"("id") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
--
-- TOC entry 2241 (class 2606 OID 53542)
-- Name: fk_user_history_user_uid; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "user_audit"
ADD CONSTRAINT "fk_user_history_user_uid" FOREIGN KEY ("user_id") REFERENCES "user"("uid") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
--
-- TOC entry 2249 (class 2606 OID 53646)
-- Name: user_inventory_inventory_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "user_inventory"
ADD CONSTRAINT "user_inventory_inventory_id_fkey" FOREIGN KEY ("inventory_id") REFERENCES "inventory"("id") ON DELETE CASCADE;
--
-- TOC entry 2248 (class 2606 OID 53641)
-- Name: user_inventory_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY "user_inventory"
ADD CONSTRAINT "user_inventory_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "user"("uid") ON DELETE CASCADE;
--
-- TOC entry 2400 (class 0 OID 0)
-- Dependencies: 7
-- Name: public; Type: ACL; Schema: -; Owner: postgres
--
REVOKE ALL ON SCHEMA "public" FROM PUBLIC;
REVOKE ALL ON SCHEMA "public" FROM "postgres";
GRANT ALL ON SCHEMA "public" TO "postgres";
GRANT ALL ON SCHEMA "public" TO PUBLIC;
-- Completed on 2017-03-28 12:40:28 CEST
--
-- PostgreSQL database dump complete
--