1
0
Fork 0

We have a web UI now, I guess

This commit is contained in:
Honbra 2024-06-09 18:29:07 +02:00
parent 75b87e7bac
commit 331423d3f6
Signed by: honbra
GPG key ID: B61CC9ADABE2D952
28 changed files with 1471 additions and 494 deletions

View file

@ -1,3 +1,2 @@
DROP TABLE IF EXISTS file_key;
DROP TABLE IF EXISTS file;
DROP TABLE IF EXISTS paste;
DROP TABLE IF EXISTS link;

View file

@ -4,13 +4,8 @@ CREATE TABLE IF NOT EXISTS link (
destination TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS file (
CREATE TABLE IF NOT EXISTS paste (
id UUID PRIMARY KEY,
hash BYTEA UNIQUE NOT NULL,
mime TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS file_key (
id UUID PRIMARY KEY,
file_id UUID REFERENCES file (id) ON DELETE CASCADE NOT NULL
title TEXT NOT NULL,
content TEXT NOT NULL
);