Добавлен основные классы для сервиса авторизаци
This commit is contained in:
1
schema/000001_init.down.sql
Normal file
1
schema/000001_init.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
drop table if exists USERS
|
||||
6
schema/000001_init.up.sql
Normal file
6
schema/000001_init.up.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE USERS(
|
||||
id serial not null unique,
|
||||
name varchar(255) not null,
|
||||
username varchar(255) unique not null,
|
||||
password_hash varchar(255) not null
|
||||
)
|
||||
2
schema/000002_add_user_role.down.sql
Normal file
2
schema/000002_add_user_role.down.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE USERS
|
||||
drop COLUMN role
|
||||
2
schema/000002_add_user_role.up.sql
Normal file
2
schema/000002_add_user_role.up.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE USERS
|
||||
add role varchar(30)
|
||||
Reference in New Issue
Block a user