CREATE SEQUENCE public.persons_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;

CREATE TABLE IF NOT EXISTS public.persons
(
    id integer DEFAULT nextval('public.persons_id_seq'::regclass) NOT NULL,
    name character varying(100) NOT NULL,
    PRIMARY KEY (id)
);



CREATE SEQUENCE public.gamedata_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;

CREATE TABLE IF NOT EXISTS public.gamedata
(
    id integer DEFAULT nextval('public.gamedata_id_seq'::regclass) NOT NULL,
    created_at timestamp without time zone NOT NULL,
    PRIMARY KEY (id)
);


CREATE SEQUENCE public.washlist_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;

CREATE TABLE IF NOT EXISTS public.washlist
(
    id integer DEFAULT nextval('public.washlist_id_seq'::regclass) NOT NULL,
    personid integer NOT NULL,
    gamedataid integer NOT NULL,
    washed boolean NOT NULL,
    PRIMARY KEY (id)
);
