diesel: Create migrations for users and pastes

Signed-off-by: ATechnoHazard <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2020-06-24 22:41:01 +05:30
1 parent 2a1034c70f
commit e782e6640f
5 files changed
+50

No files matched your search

@@ -0,0 +1 @@
DROP TABLE IF EXISTS pastes
@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS pastes
(
id VARCHAR PRIMARY KEY,
belongs_to VARCHAR references users(id),
is_url BOOLEAN NOT NULL DEFAULT 'f',
content TEXT NOT NULL
)