apps: sql + get valid one, get by id, insert, generate app id, generate secret
This commit is contained in:
parent
b5c2be6c9f
commit
71b083895d
19 changed files with 490 additions and 0 deletions
13
crates/database/queries/apps/get_one.sql
Normal file
13
crates/database/queries/apps/get_one.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
select id,
|
||||
created_at as "created_at: DateTime<Utc>",
|
||||
updated_at as "updated_at: DateTime<Utc>",
|
||||
label,
|
||||
redirect_uri,
|
||||
secret,
|
||||
is_confidential as "is_confidential: bool",
|
||||
is_archived as "is_archived: bool"
|
||||
from apps
|
||||
|
||||
where id is (?)
|
||||
and redirect_uri is (?)
|
||||
and is_archived is 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue