aboutsummaryrefslogtreecommitdiff
path: root/haunt/jakob/dynamic/schema-comments.sql
diff options
context:
space:
mode:
authorJakob L. Kreuze2022-11-15 19:17:44 -0500
committerJakob L. Kreuze2022-11-15 19:17:44 -0500
commit2c666a53e847e6b49dbdf4fd22416872bb197f6b (patch)
tree9bacca9cdc0ee645941bc09b61d1d6a91d6f2678 /haunt/jakob/dynamic/schema-comments.sql
parentb6482d86fa58dee7d55889fa873463274f81d3db (diff)
[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.
Diffstat (limited to 'haunt/jakob/dynamic/schema-comments.sql')
-rw-r--r--haunt/jakob/dynamic/schema-comments.sql16
1 files changed, 16 insertions, 0 deletions
diff --git a/haunt/jakob/dynamic/schema-comments.sql b/haunt/jakob/dynamic/schema-comments.sql
new file mode 100644
index 0000000..b2cb652
--- /dev/null
+++ b/haunt/jakob/dynamic/schema-comments.sql
@@ -0,0 +1,16 @@
+CREATE TABLE comments(
+ id SERIAL PRIMARY KEY,
+ approved TIMESTAMP,
+ submitted TIMESTAMP NOT NULL,
+ slug VARCHAR(100) NOT NULL,
+ name VARCHAR(50) NOT NULL,
+ subject VARCHAR(100),
+ email VARCHAR(100),
+ url VARCHAR(100),
+ comment VARCHAR(1024) NOT NULL,
+ reactions VARCHAR(1024)
+);
+
+-- Use `now' for `submitted'.
+
+-- INSERT INTO comments (submitted, slug, name, comment) VALUES (now(), 'test', 'Jakob', 'Hello, world!');

© 2015 - 2026 Jakob L. Kreuze