migrations for user roles

This commit is contained in:
2021-02-10 09:12:42 +01:00
parent 8cb121b568
commit 72be8e693a
2 changed files with 15 additions and 0 deletions
@@ -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)
);