users: get user by id, email, username
This commit is contained in:
parent
b8f6cae85e
commit
d790d2ff29
8 changed files with 254 additions and 6 deletions
14
crates/database/queries/users/get_one_by_username.sql
Normal file
14
crates/database/queries/users/get_one_by_username.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
select id,
|
||||
created_at as "created_at: DateTime<Utc>",
|
||||
updated_at as "updated_at: DateTime<Utc>",
|
||||
is_admin as "is_admin: bool",
|
||||
username,
|
||||
name,
|
||||
email,
|
||||
password,
|
||||
password_recover,
|
||||
paper_key,
|
||||
is_archived as "is_archived: bool"
|
||||
from users
|
||||
|
||||
where username is (?)
|
||||
Loading…
Add table
Add a link
Reference in a new issue