katbin/migrations/2020-06-24-170630_create_paste/up.sql
ATechnoHazard e782e6640f
diesel: Create migrations for users and pastes
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-24 22:41:01 +05:30

7 lines
177 B
SQL

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
)