summaryrefslogtreecommitdiff
path: root/dynamic/schema-gallery.sql
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.org>2022-05-16 21:50:22 -0400
committerJakob L. Kreuze <zerodaysfordays@sdf.org>2022-05-16 21:50:22 -0400
commita5b176aeab1319c9dc8109765c4b09499f7a9fc1 (patch)
tree6035684303f74dfa173af6bbbda1de6ba47f00ec /dynamic/schema-gallery.sql
parent4871c7fda7e401f3a27ed97855b80cc0f0999504 (diff)
[scheme] Initial gallery API
Diffstat (limited to 'dynamic/schema-gallery.sql')
-rw-r--r--dynamic/schema-gallery.sql18
1 files changed, 18 insertions, 0 deletions
diff --git a/dynamic/schema-gallery.sql b/dynamic/schema-gallery.sql
new file mode 100644
index 0000000..bad4100
--- /dev/null
+++ b/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)
+);