CREATE TYPE category AS ENUM('Whiteboard Beamer', 'Internet', 'iPad Koffer', 'Apple TV', 'Docu Cam', 'Sonstiges')
CREAYE TYPE status AS ENUM('ToDo', 'InProgress', 'Done', 'Archived')
CREATE TABLE IF NOT EXISTS tickets (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    category category NOT NULL DEFAULT 'Sonstiges',
    betreff VARCHAR(100),
    description VARCHAR,
    room SMALLINT,
    status status NOT NULL DEFAULT 'ToDo',
    date TIMESTAMP,
    user_id SMALLINT
);
