Files
ticketsystem/migrations/20260422094706_ticket_table.sql
schn33fuchs 8b34dac813 Added functions for adding, deleting and showing tickets
As said, functions got implemented. Also minor changes to migration
layout and dependencies
2026-04-22 20:40:28 +02:00

11 lines
326 B
SQL

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