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
11 lines
340 B
SQL
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
|
|
);
|