migrations for user roles
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
-- This file should undo anything in `up.sql`
|
||||||
|
|
||||||
|
DROP TABLE user_roles;
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
-- Your SQL goes here
|
||||||
|
CREATE TABLE user_roles
|
||||||
|
(
|
||||||
|
id INTEGER PRIMARY KEY NOT NULL,
|
||||||
|
name TEXT NOT NULL,
|
||||||
|
description TEXT NOT NULL,
|
||||||
|
|
||||||
|
FOREIGN KEY
|
||||||
|
(link)
|
||||||
|
REFERENCES users
|
||||||
|
(id)
|
||||||
|
);
|
||||||
Reference in New Issue
Block a user