Fixes and new endpoints

- Fixed doctor and patient PUT queries
- Added patient register
- Added doctor register
- Added email verification check middleware
- Added verified status to doctor table
This commit is contained in:
2024-02-26 11:02:49 +01:00
parent 0ddbc437b9
commit 78523d4e8d
4 changed files with 72 additions and 11 deletions

View File

@@ -100,6 +100,7 @@ CREATE TABLE doctors (
phone VARCHAR(20) NOT NULL,
speciality VARCHAR(255) NOT NULL,
status VARCHAR(255) NOT NULL,
is_verified BOOLEAN NOT NULL DEFAULT FALSE,
PRIMARY KEY (id),
CONSTRAINT dt_user_id
FOREIGN KEY (user_id)