Files
ticketsystem/migrations/20260422094706_ticket_table.sql
schn33fuchs bc0d3cb589 Added database connection
Code now connects to database and prints out errors. Also the ticket
table now includes a timestamp field
2026-04-22 15:50:08 +02:00

12 lines
360 B
SQL

CREATE TYPE category AS ENUM('Whiteboard Beamer', 'Internet', 'iPad Koffer', 'Apple TV', 'Docu Cam', 'Sonstiges')
CREATE TABLE IF NOT EXISTS tickets (
id INTEGER PRIMARY KEY AUTOINCREMENT,
category category NOT NULL DEFAULT 'Sonstiges',
betreff VARCHAR(100),
description VARCHAR,
room SMALLINT,
date TIMESTAMP,
user_id SMALLINT
);