polaris/migrations/201706272129_users_table/up.sql

9 lines
178 B
MySQL
Raw Normal View History

CREATE TABLE users (
id INTEGER PRIMARY KEY NOT NULL,
name TEXT NOT NULL,
password_salt BLOB NOT NULL,
password_hash BLOB NOT NULL,
admin INTEGER NOT NULL,
UNIQUE(name)
);