mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-01-08 05:00:37 -05:00
12 lines
290 B
PL/PgSQL
12 lines
290 B
PL/PgSQL
begin;
|
|
|
|
create table sessions(
|
|
id varchar(128) not null primary key,
|
|
user_id uuid not null references users(id) on delete cascade,
|
|
created_date timestamptz not null default now()::timestamptz,
|
|
last_used timestamptz not null default now()::timestamptz,
|
|
device varchar(1024)
|
|
);
|
|
|
|
commit;
|