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-comments.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 haunt/jakob/dynamic/schema-comments.sql (limited to 'haunt/jakob/dynamic/schema-comments.sql') 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!'); -- cgit v1.3