Added functions for adding, deleting and showing tickets

As said, functions got implemented. Also minor changes to migration
layout and dependencies
This commit is contained in:
2026-04-22 20:40:28 +02:00
parent 1725d2538c
commit 8b34dac813
10 changed files with 134 additions and 9 deletions

View File

@@ -1,12 +1,10 @@
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,
id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
category category NOT NULL DEFAULT 'Sonstiges',
betreff VARCHAR(100),
description VARCHAR,
description TEXT,
room SMALLINT,
status status NOT NULL DEFAULT 'ToDo',
date TIMESTAMP,
date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
user_id SMALLINT
);