Added status Struct

This commit is contained in:
2026-04-22 18:45:02 +02:00
parent a9e31e2fdf
commit 1725d2538c
2 changed files with 23 additions and 2 deletions

View File

@@ -1,11 +1,12 @@
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
);