mirror of
https://github.com/Jackzmc/storage.git
synced 2025-05-07 16:23:21 +00:00
Fix login loop and add documentation
This commit is contained in:
parent
6ffa89a936
commit
bf2a87d746
8 changed files with 112 additions and 10 deletions
36
migrations/default.sql
Normal file
36
migrations/default.sql
Normal file
|
@ -0,0 +1,36 @@
|
|||
create table libraries
|
||||
(
|
||||
owner_id uuid not null
|
||||
constraint libraries_owner_id
|
||||
references users
|
||||
on update cascade on delete cascade,
|
||||
created_at timestamp default now() not null,
|
||||
name varchar(255) not null,
|
||||
repo_id varchar(64) not null
|
||||
constraint libraries_repo_id
|
||||
references repos
|
||||
on update cascade on delete cascade,
|
||||
id uuid not null
|
||||
constraint libraries_pk
|
||||
primary key
|
||||
);
|
||||
create table repos
|
||||
(
|
||||
id varchar(64) not null
|
||||
primary key,
|
||||
created_at timestamp default now() not null,
|
||||
storage_type varchar(32) not null,
|
||||
storage_settings json not null,
|
||||
flags smallint default 0 not null
|
||||
);
|
||||
create table users
|
||||
(
|
||||
id uuid not null
|
||||
primary key,
|
||||
created_at timestamp default now() not null,
|
||||
name varchar(255) not null,
|
||||
password varchar(128),
|
||||
email varchar(128) not null,
|
||||
username varchar(64) not null
|
||||
);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue