Fix login loop and add documentation

This commit is contained in:
Jackzie 2025-04-16 17:05:41 -05:00
parent 6ffa89a936
commit bf2a87d746
8 changed files with 112 additions and 10 deletions

36
migrations/default.sql Normal file
View 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
);