mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Switch to json web tokens.
This commit is contained in:
parent
5219582803
commit
cb0c912c5b
10 changed files with 202 additions and 86 deletions
|
|
@ -1,6 +1,16 @@
|
|||
create table account (
|
||||
user_id serial primary key,
|
||||
username varchar(255) unique not null,
|
||||
password varchar(60) not null,
|
||||
is_admin bool not null default false,
|
||||
created_at timestamp with time zone default current_timestamp,
|
||||
updated_at timestamp with time zone default current_timestamp
|
||||
);
|
||||
|
||||
create table website (
|
||||
website_id serial primary key,
|
||||
website_uuid uuid unique not null,
|
||||
user_id int not null references account(user_id) on delete cascade,
|
||||
hostname varchar(100) not null,
|
||||
created_at timestamp with time zone default current_timestamp
|
||||
);
|
||||
|
|
@ -37,6 +47,8 @@ create table event (
|
|||
event_value varchar(50) not null
|
||||
);
|
||||
|
||||
create index on account(username);
|
||||
|
||||
create index on session(created_at);
|
||||
create index on session(website_id);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue