fix create teacher route, refactoring route function

This commit is contained in:
Akhmedov Khadgimurad
2025-11-19 14:42:56 +03:00
parent e7f20a4d82
commit 8ec1f3a17f
8 changed files with 50 additions and 44 deletions

View File

@ -1,3 +1,9 @@
insert into patients ("full_name", "phone")
values($1,$2)
returning "id";
insert into patients(
"full_name",
"phone"
)
values($1, $2)
returning
"id",
"full_name" as "full_name!",
"phone" as "phone!"