implement basic patients routes

This commit is contained in:
Akhmedov Khadgimurad
2025-11-18 18:26:20 +03:00
parent 8e81b99f63
commit e7f20a4d82
15 changed files with 218 additions and 295 deletions

View File

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

View File

@ -0,0 +1,3 @@
delete from patients
where id = $1
returning *;

1
queries/get_all.sql Normal file
View File

@ -0,0 +1 @@
select * from "patients"

View File

@ -0,0 +1,2 @@
select * from "patients"
where id = $1;

View File

@ -0,0 +1,3 @@
update patients
set full_name = $2, phone = $3
where id = $1;