0% found this document useful (0 votes)
19 views7 pages

Database

The document defines the data structure of various tables used to store user, doctor, appointment and other related data for a healthcare management system. It lists the entities, data types, constraints and descriptions for tables like user, roles, medical records, doctor, appointments etc.

Uploaded by

yash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views7 pages

Database

The document defines the data structure of various tables used to store user, doctor, appointment and other related data for a healthcare management system. It lists the entities, data types, constraints and descriptions for tables like user, roles, medical records, doctor, appointments etc.

Uploaded by

yash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

K.S. SCHOOL OF BUSINESS MANAGEMENT M.

SC(CA&IT)

4.3 DATA DICTIONARY

USER_TBL
Entities Data type Constraints Description

Id VARCHAR(767) PRIMARY KEY User table ID

UserName VARCHAR(256) Username for system


Email VARCHAR(256) UNIQUE Email of user
EmailConfirmed TINYINT(1) NOT NULL Email confirmation

PasswordHash TEXT NOT NULL Password Of User


PhoneNumber TEXT Phone number
FName TEXT NOT NULL First Name of User
LName TEXT NOT NULL Last Name ofUser
BirthDate DateTime BirthDate
Gender TEXT Gender
ProfilePicture TEXT Path for ProfilePhoto
BloodGroup TEXT Blood Group
City TEXT City
Country TEXT Country
HouseNumber TEXT House Number
Pincode INT Pincode
State TEXT State
Street TEXT Steet

ROLES TBL

Entities Data type Constraints Description


Id VARCHAR(767) PRIMARY KEY Roles table ID
Name VARCHAR(256) Name of Role
NormalizedName VARCHAR(256) UNIQUE Normalized Name

1 K.S. SCHOOL OF BUSINESS MANAC EMENT M.SC( CA& I


K.S. SCHOOL OF BUSINESS MANAGEMENT M.SC(CA&IT)

USER_ROLES TBL
Entities Data type Constraints Description
Userld VARCHAR(767) PRIMARY KEY User table ID

RolelD VARCHAR(767) PRIMARY KEY Role table ID

USER CLAIMS TBL


Entities Data type Constraints Description
Id INT PRIMARY KEY User Claim Table ID

Userld VARCHAR(767) FOREIGN KEY User Table ID


Claim Type TEXT Type Of Claim
Claim Value TEXT Value of Claim

MedicalRecords Tbl
Entities Data type Constraints Description
Id INT PRIMARY KEY MedicalRecords table ID

Type TEXT NOT NULL File Type

Pathname TEXT NOT NULL Path of Medical Recors

Filename TEXT NOT NULL File name

Extension TEXT NOT NULL Extension of file

DateTime_UpIoaded DateTime NOT NULL DateTime when upload

Userld VARCHAR(767) FOREIGN KEY User Table ID

2 K.S. SCHOOL OF BUSINESS MANAC EMENT M.SC( CA& I


K.S. SCHOOL OF BUSINESS MANAGEMENT M.SC(CA&IT)

DOCTOR TBL
Entities Data type Constraints Description

Id INT PRIMARY KEY Doctor ID

Userld VARCHAR(767) FOREIGN KEY User Table

Speciality VARCHAR(30) NOT NULL ID Speciality

ClinicNumber TEXT NOT NULL Clinic Phone Number

RoomNumber VARCHAR(5) NOT NULL Room Number of clinic

Street VARCHAR(30) NOT NULL Street of clinic


Country VARCHAR(30) NOT NULL Country

State VARCHAR(30) NOT NULL State

Pincode INT NOT NULL Pincode

DoctorCertificate TEXT NOT NULL Path of certificate

Awards TEXT Awards

Education TEXT Eduction

Experience TEXT Experience

ExperiencelnTotal INT Experience in Time

Membership TEXT Membership


Registration TEXT Doctor Registration
Services TEXT Service Provided By
Doctor
Specialization TEXT Specialisation in illness
Training TEXT Training Place

ClinicName TEXT NameOfClinic


Price INT NOT NULL Price Charged
Meet TEXT Google Meet Link
Schedule TEXT Daily schedule
GooglePay TEXT Doctor Payment
Method

3 K.S. SCHOOL OF BUSINESS MANAC EMENT M.SC( CA& I


K.S. SCHOOL OF BUSINESS MANAGEMENT M.SC(CA&IT)

APPOINTMENTOTP TBL
Entities Data type Constraints Description
Id INT PRIMARY KEY Appointment Otp Id

Appointment_ld INT FOREIGN KEY Appointment Table Id

OtpValue INT NOT NULL Otp Value


DateTime DATETIME NOT NULL Otp Created Time

APPOINTMENT_TBL
Entities Data type Constraints DesGription
Id INT PRIMARY KEY Appointment Id

Slotld BIGINT FOREIGN KEY Slot Table Id

Order_ld TEXT NOT NULL Order bill

Userld VARCHAR(767) FOREIGN KEY User Table Id

Payment TINYINT(1) NOT NULL Payment successful


Cancelled TINYINT(1) NOT NULL Canccellation Check

DateTime DATETIME NOT NULL Time at which


appointment placed
Completed TINYINT(1) NOT NULL Completed Check

SLOT TBL
Entities Data type Constraints Description
Id BIGINT PRIMARY KEY Slot Table Id

Scheduleld BIGINT FOREIGN KEY Schedule table Id


Date DATETIME NOT NULL Date

Time TIME NOT NULL Duration

Value INT NOT NULL Appointment Value

4 K.S. SCHOOL OF BUSINESS MANAC EMENT M.SC( CA& I


K.S. SCHOOL OF BUSINESS MANAGEMENT M.SC(CA&IT)

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

Break1EndTime TIME NOT NULL Break 1 End time


Break2StartTime TIME NOT NULL Break 2 Start time

Break2EndTime TIME NOT NULL Break 2 End time


Repeat TINYINT(1) NOT NULL Repeat Schedule

Sunday TINYINT(1) NOT NULL Sunday


Monday TINYINT(1) NOT NULL Monday
Tuesday TINYINT(1) NOT NULL Tuesday
Wednesday TINYINT(1) NOT NULL Wednesday
Thursday TINYINT(1) NOT NULL Thursday

Friday TINYINT1) NOT NULL Friday

Saturday TINYINT(1) NOT NULL Saturday


EndDate DATETIME NOT NULL End Schedule
StartDate DATETIME NOTNULL Start Schedule

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

5 K.S. SCHOOL OF BUSINESS MANAC EMENT M.SC( CA& I


K.S. SCHOOL OF BUSINESS MANAGEMENT M.SC(CA&IT)

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

Feedback_By TINYINT(1) NOT NULL Feedback By

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

6 K.S. SCHOOL OF BUSINESS MANAC EMENT M.SC( CA& I


K.S. SCHOOL OF BUSINESS MANAGEMENT M.SC(CA&IT)

PAYMENT_SUCCESSFULL_TBL
Entities Data type Constraints Description
Id INT PRIMARY KEY Payment Successful
Table Id
AppointmentlD INT NOT NULL Appointment Table ID

Payment_ld TEXT NOT NULL Payment ID

Order_ID TEXT NOT NULL Order ID

Signature TEXT NOT NULL Signature

Payment_Doctor_TbI
Entities Data type Constraints Description
Id INT PRIMARY KEY Payment Doctor ID

Paid_Date DATETIME NOT NULL Payment Date


Doctor Id INT FOREIGN KEY Doctor Table Id

Amount Paid FLOAT NOT NULL About Paid

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

7 K.S. SCHOOL OF BUSINESS MANAC EMENT M.SC( CA& I

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy