Database
Database
SC(CA&IT)
USER_TBL
Entities Data type Constraints Description
ROLES TBL
USER_ROLES TBL
Entities Data type Constraints Description
Userld VARCHAR(767) PRIMARY KEY User table ID
MedicalRecords Tbl
Entities Data type Constraints Description
Id INT PRIMARY KEY MedicalRecords table ID
DOCTOR TBL
Entities Data type Constraints Description
APPOINTMENTOTP TBL
Entities Data type Constraints Description
Id INT PRIMARY KEY Appointment Otp Id
APPOINTMENT_TBL
Entities Data type Constraints DesGription
Id INT PRIMARY KEY Appointment Id
SLOT TBL
Entities Data type Constraints Description
Id BIGINT PRIMARY KEY Slot Table Id
SCHEDULE TBL
Entities Data type Constraints Description
Id BIGINT PRIMARY KEY Schedule Table Id
Doctorld INT FOREIGN KEY Doctor Table Id
Mode TEXT NOT NULL Mode of Appointment
StartTime TIME NOT NULL Start time
EndTime TIME NOT NULL End TIme
Break1StartTime TIME NOT NULL Break 1 Start time
OTP TBL
Entities Data type Constraints Description
Id INT PRIMARY KEY Otp table ID
UserlD VARCHAR(767) FOREIGN KEY User Table ID
OtpValue INT NOT NULL Otp Value
DateTime DATETIME NOT NULL Date time created
FEEDBACK TBL
Entities Data type Constraints Description
Id INT PRIMARY KEY Feedback Table ID
Appointmentld INT FOREIGN KEY Appointment Table ID
Experience TEXT NOT NULL Experience
Message TEXT Message
SOMEONEELSE TBL
Entities Data type Constraints Description
Id INT PRIMARY KEY Someone-else Table Id
AppointmentlD INT FOREIGN KEY Appointment Table ID
FName TEXT NOT NULL First Name
LName TEXT NOT NULL Last Name
Email TEXT NOT NULL Email Address
REFUND_TBL
Entities Data type Constraints Description
Id INT PRIMARY KEY Refund Table Id
AppointmentlD INT FOREIGN KEY Appointment Table Id
Reason TEXT NOT NULL Reason for Cancellation
Dt_Rf_AppIied DATETIME NOT NULL When Refund Applied
Dt_Refunded DATETIME When Amount
Refunded
Person TEXT NOT NULL Person Who Cancelled
AmountRefunded INT NOT NULL Amount that was
Refunded
PAYMENT_SUCCESSFULL_TBL
Entities Data type Constraints Description
Id INT PRIMARY KEY Payment Successful
Table Id
AppointmentlD INT NOT NULL Appointment Table ID
Payment_Doctor_TbI
Entities Data type Constraints Description
Id INT PRIMARY KEY Payment Doctor ID
PateintRecordsDoctors Tbl
Entities Data type Constraints DesGription
Id BIGINT PRIMARY KEY Table Id
MedicaIRecord_Id INT FOREIGN KEY Medical Records ID
Doctor_ld INT FOREIGN KEY Doctor Table ID