user: get one by id

This commit is contained in:
Philippe Loctaux 2023-03-08 00:14:36 +01:00
parent 5404fb1cf8
commit e04de752ef
4 changed files with 111 additions and 0 deletions

View 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 id is (?)