migrations for user roles

This commit is contained in:
Dietrich 2021-02-10 09:12:42 +01:00
parent 8cb121b568
commit 72be8e693a
Signed by: dietrich
GPG Key ID: 9F3C20C0F85DF67C
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`
DROP TABLE user_roles;

View 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)
);