migrations for user roles
This commit is contained in:
parent
8cb121b568
commit
72be8e693a
3
migrations/2021-02-10-072528_add_user_profiles/down.sql
Normal file
3
migrations/2021-02-10-072528_add_user_profiles/down.sql
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
-- This file should undo anything in `up.sql`
|
||||||
|
|
||||||
|
DROP TABLE user_roles;
|
12
migrations/2021-02-10-072528_add_user_profiles/up.sql
Normal file
12
migrations/2021-02-10-072528_add_user_profiles/up.sql
Normal file
@ -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)
|
||||||
|
);
|
Loading…
Reference in New Issue
Block a user