users: store timezone, default is "UTC"
This commit is contained in:
parent
1168e1494c
commit
e49c146dfd
14 changed files with 415 additions and 322 deletions
|
|
@ -8,7 +8,8 @@ select u.id,
|
|||
u.password,
|
||||
u.password_recover,
|
||||
u.paper_key,
|
||||
u.is_archived as "is_archived: bool"
|
||||
u.is_archived as "is_archived: bool",
|
||||
u.timezone
|
||||
from users u
|
||||
|
||||
inner join settings s on u.id = s.first_admin
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@ select id,
|
|||
password,
|
||||
password_recover,
|
||||
paper_key,
|
||||
is_archived as "is_archived: bool"
|
||||
is_archived as "is_archived: bool",
|
||||
timezone
|
||||
from users
|
||||
|
||||
where email is (?)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@ select id,
|
|||
password,
|
||||
password_recover,
|
||||
paper_key,
|
||||
is_archived as "is_archived: bool"
|
||||
is_archived as "is_archived: bool",
|
||||
timezone
|
||||
from users
|
||||
|
||||
where id is (?)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@ select id,
|
|||
password,
|
||||
password_recover,
|
||||
paper_key,
|
||||
is_archived as "is_archived: bool"
|
||||
is_archived as "is_archived: bool",
|
||||
timezone
|
||||
from users
|
||||
|
||||
where username is (?)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@ select u.id,
|
|||
u.password,
|
||||
u.password_recover,
|
||||
u.paper_key,
|
||||
u.is_archived as "is_archived: bool"
|
||||
u.is_archived as "is_archived: bool",
|
||||
u.timezone
|
||||
from users u
|
||||
|
||||
inner join authorization_codes ac on u.id = ac.user
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@ select u.id,
|
|||
u.password,
|
||||
u.password_recover,
|
||||
u.paper_key,
|
||||
u.is_archived as "is_archived: bool"
|
||||
u.is_archived as "is_archived: bool",
|
||||
u.timezone
|
||||
from users u
|
||||
|
||||
inner join refresh_tokens rt on u.id = rt.user
|
||||
|
|
|
|||
5
crates/database/queries/users/set_timezone.sql
Normal file
5
crates/database/queries/users/set_timezone.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
update users
|
||||
|
||||
set timezone = ?
|
||||
|
||||
where id is ?
|
||||
Loading…
Add table
Add a link
Reference in a new issue