feat: Added basic user authorization
This commit is contained in:
14
migrations/00003_create_users_table.sql
Normal file
14
migrations/00003_create_users_table.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- +goose Up
|
||||
create table if not exists users
|
||||
(
|
||||
id serial unique not null primary key,
|
||||
login varchar(120) unique not null,
|
||||
password varchar,
|
||||
|
||||
created_at timestamptz default now() not null,
|
||||
updated_at timestamptz default now() not null
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
|
||||
drop table if exists users;
|
||||
Reference in New Issue
Block a user