mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-04 14:14:12 -04:00
Fix timestamptz typo
This commit is contained in:
parent
dc41880ca7
commit
dd1580b819
@ -7,8 +7,8 @@ create table users(
|
|||||||
password text,
|
password text,
|
||||||
claims jsonb not null,
|
claims jsonb not null,
|
||||||
|
|
||||||
created_date timestampz not null default now()::timestampz,
|
created_date timestamptz not null default now()::timestamptz,
|
||||||
last_seen timestampz not null default now()::timestampz
|
last_seen timestamptz not null default now()::timestamptz
|
||||||
);
|
);
|
||||||
|
|
||||||
create table oidc_handle(
|
create table oidc_handle(
|
||||||
@ -21,7 +21,7 @@ create table oidc_handle(
|
|||||||
|
|
||||||
access_token text,
|
access_token text,
|
||||||
refresh_token text,
|
refresh_token text,
|
||||||
expire_at timestampz,
|
expire_at timestamptz,
|
||||||
|
|
||||||
constraint oidc_handle_pk primary key (user_id, provider)
|
constraint oidc_handle_pk primary key (user_id, provider)
|
||||||
);
|
);
|
||||||
|
@ -3,8 +3,8 @@ begin;
|
|||||||
create table sessions(
|
create table sessions(
|
||||||
id varchar(128) not null primary key,
|
id varchar(128) not null primary key,
|
||||||
user_id uuid not null references users(id) on delete cascade,
|
user_id uuid not null references users(id) on delete cascade,
|
||||||
created_date timestampz not null default now()::timestampz,
|
created_date timestamptz not null default now()::timestamptz,
|
||||||
last_used timestampz not null default now()::timestampz,
|
last_used timestamptz not null default now()::timestamptz,
|
||||||
device varchar(1024)
|
device varchar(1024)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ limit 1;
|
|||||||
update
|
update
|
||||||
sessions
|
sessions
|
||||||
set
|
set
|
||||||
last_used = now()::timestampz
|
last_used = now()::timestamptz
|
||||||
where
|
where
|
||||||
id = $1;
|
id = $1;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ sql:
|
|||||||
emit_pointers_for_null_types: true
|
emit_pointers_for_null_types: true
|
||||||
emit_json_tags: true
|
emit_json_tags: true
|
||||||
overrides:
|
overrides:
|
||||||
- db_type: "timestampz"
|
- db_type: "timestamptz"
|
||||||
go_type:
|
go_type:
|
||||||
import: "time"
|
import: "time"
|
||||||
type: "Time"
|
type: "Time"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user