katbin/migrations/2020-06-24-170630_create_paste/up.sql

7 lines
177 B
MySQL
Raw Normal View History

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
)