Changed enums to string
String is easyer to decode and the sendable data in the frontend will be limited.
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user