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