-- Table: settings
-- DROP TABLE settings;
CREATE TABLE settings
(
�� id character(24) NOT NULL,
�� logourl text,
�� templatename text,
�� successmessage text,
�� doprintout boolean,
�� regtitle text,
�� themecolor text,
�� regbgurl text,
�� lunchstart timestamp without time zone,
�� lunchend timestamp without time zone,
�� statustitle text,
�� lunchmessage text,
�� endofdaymessage text,
�� statusbgurl text,
�� modbgurl text,
�� regtitlecolor text,
�� statustitlecolor text,
�� statustextno text,
�� statustextlocation text,
�� statustextest text,
�� nummoderators integer,
�� showinstatusest boolean,
�� estreset timestamp without time zone,
�� manualest integer,
�� CONSTRAINT settings_pkey PRIMARY KEY (id)
)
WITH (
�� OIDS=FALSE
);
ALTER TABLE settings
�� OWNER TO sean;
-- Table: urlsettings
-- DROP TABLE urlsettings;
CREATE TABLE urlsettings
(
�� id serial NOT NULL,
�� statusurl text,
�� registrationurl text,
�� moderatorurl text,
�� CONSTRAINT urlsettings_pkey PRIMARY KEY (id)
)
WITH (
�� OIDS=FALSE
);
ALTER TABLE urlsettings
�� OWNER TO sean;
-- Table: visitors
-- DROP TABLE visitors;
CREATE TABLE visitors
(
�� id serial NOT NULL,
�� moderatorid character(36),
�� settingsid character(24),
�� no integer,
�� createdat timestamp without time zone,
�� calledat timestamp without time zone,
�� cancelledat timestamp without time zone,
�� showedupat timestamp without time zone,
�� processedat timestamp without time zone,
�� comments text,
�� finishedloginat timestamp without time zone,
�� CONSTRAINT visitors_pkey PRIMARY KEY (id),
�� CONSTRAINT visitors_settingsid_fkey FOREIGN KEY (settingsid)
�� �� �� REFERENCES settings (id) MATCH SIMPLE
�� �� �� ON UPDATE NO ACTION ON DELETE NO ACTION,
�� CONSTRAINT vistors_moderatorid_fkey FOREIGN KEY (moderatorid)
�� �� �� REFERENCES moderators (id) MATCH SIMPLE
�� �� �� ON UPDATE NO ACTION ON DELETE NO ACTION
)
WITH (
�� OIDS=FALSE
);
ALTER TABLE visitors
�� OWNER TO sean;
-- Index: visitors_moderatorid_idx
-- DROP INDEX visitors_moderatorid_idx;
CREATE INDEX visitors_moderatorid_idx
�� ON visitors
�� USING btree
�� (moderatorid COLLATE pg_catalog."default");
-- Index: visitors_settingsid_idx
-- DROP INDEX visitors_settingsid_idx;
CREATE INDEX visitors_settingsid_idx
�� ON visitors
�� USING btree
�� (settingsid COLLATE pg_catalog."default");
-- Sequence: answers_id_seq
-- DROP SEQUENCE answers_id_seq;
CREATE SEQUENCE answers_id_seq
�� INCREMENT 1
�� MINVALUE 1
�� MAXVALUE 9223372036854775807
�� START 220
�� CACHE 1;
ALTER TABLE answers_id_seq
�� OWNER TO sean;
-- Sequence: modsessions_id_seq
-- DROP SEQUENCE modsessions_id_seq;
CREATE SEQUENCE modsessions_id_seq
�� INCREMENT 1
�� MINVALUE 1
�� MAXVALUE 9223372036854775807
�� START 40
�� CACHE 1;
ALTER TABLE modsessions_id_seq
�� OWNER TO sean;
-- Sequence: options_id_seq
-- DROP SEQUENCE options_id_seq;
CREATE SEQUENCE options_id_seq
�� INCREMENT 1
�� MINVALUE 1
�� MAXVALUE 9223372036854775807
�� START 68
�� CACHE 1;
ALTER TABLE options_id_seq
�� OWNER TO sean;
-- Sequence: questions_id_seq
-- DROP SEQUENCE questions_id_seq;
CREATE SEQUENCE questions_id_seq
�� INCREMENT 1
�� MINVALUE 1
�� MAXVALUE 9223372036854775807
�� START 18
�� CACHE 1;
ALTER TABLE questions_id_seq
�� OWNER TO sean;
-- Sequence: selectedoptions_id_seq
-- DROP SEQUENCE selectedoptions_id_seq;
CREATE SEQUENCE selectedoptions_id_seq
�� INCREMENT 1
�� MINVALUE 1
�� MAXVALUE 9223372036854775807
�� START 46
�� CACHE 1;
ALTER TABLE selectedoptions_id_seq
�� OWNER TO sean;
-- Sequence: urlsettings_id_seq
-- DROP SEQUENCE urlsettings_id_seq;
CREATE SEQUENCE urlsettings_id_seq
�� INCREMENT 1
�� MINVALUE 1
�� MAXVALUE 9223372036854775807
�� START 1
�� CACHE 1;
ALTER TABLE urlsettings_id_seq
�� OWNER TO sean;
-- Sequence: visitors_id_seq
-- DROP SEQUENCE visitors_id_seq;
CREATE SEQUENCE visitors_id_seq
�� INCREMENT 1
�� MINVALUE 1
�� MAXVALUE 9223372036854775807
�� START 52
�� CACHE 1;
ALTER TABLE visitors_id_seq
�� OWNER TO sean;