Changed enums to string

String is easyer to decode and the sendable data in the frontend will be
limited.
This commit is contained in:
2026-04-23 16:51:21 +02:00
parent d890255631
commit b905ffc9b1
5 changed files with 8 additions and 54 deletions

View File

@@ -1,10 +1,10 @@
CREATE TABLE IF NOT EXISTS tickets (
id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
category category NOT NULL DEFAULT 'Sonstiges',
category VARCHAR(20) NOT NULL DEFAULT 'Sonstiges',
betreff VARCHAR(100),
description TEXT,
room SMALLINT,
status status NOT NULL DEFAULT 'ToDo',
status VARCHAR(15) NOT NULL DEFAULT 'ToDo',
date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
user_id SMALLINT
);