From 2c666a53e847e6b49dbdf4fd22416872bb197f6b Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Tue, 15 Nov 2022 19:17:44 -0500 Subject: [dynamic] Move to `haunt' directory and `jakob' namespace There will likely be some refactoring later as part of this change, since we can unify the `util' namespaces. --- haunt/jakob/dynamic/schema-gallery.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 haunt/jakob/dynamic/schema-gallery.sql (limited to 'haunt/jakob/dynamic/schema-gallery.sql') diff --git a/haunt/jakob/dynamic/schema-gallery.sql b/haunt/jakob/dynamic/schema-gallery.sql new file mode 100644 index 0000000..bad4100 --- /dev/null +++ b/haunt/jakob/dynamic/schema-gallery.sql @@ -0,0 +1,18 @@ +CREATE TABLE IF NOT EXISTS galleries ( + id SERIAL, + vanity char(12) NOT NULL, + title varchar(128), + description varchar(4096) NOT NULL, + datetime timestamp with time zone NOT NULL, + PRIMARY KEY (id) +); + +CREATE TABLE IF NOT EXISTS images ( + id SERIAL, + vanity char(12) NOT NULL, + title varchar(128), + filename varchar(64) NOT NULL, + thumb_filename varchar(64) NOT NULL, + datetime timestamp with time zone NOT NULL, + PRIMARY KEY (id) +); -- cgit v1.3