Files
ticketsystem/migrations/20260422094706_ticket_table.sql
schn33fuchs 9972863232 Created Axum routing for localhost, also SQL Table structure
Added a axum router and listener for serving a web page on localhost.
Also a sql table structure was created with sqlx migrate for storing
tickets and users
2026-04-22 13:08:14 +02:00

11 lines
340 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,
user_id SMALLINT
);