0% found this document useful (0 votes)
410 views3 pages

Clinic Management System Database Schema

This document summarizes the basic schema of a content management system (CMS) with 8 tables: LoginTable, Patient, Department, Doctor, OtherStaff, Appointment, Pending_Feedback. Each table is described with its columns, data types, and constraints. Primary keys are specified along with any foreign key and uniqueness constraints between the tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
410 views3 pages

Clinic Management System Database Schema

This document summarizes the basic schema of a content management system (CMS) with 8 tables: LoginTable, Patient, Department, Doctor, OtherStaff, Appointment, Pending_Feedback. Each table is described with its columns, data types, and constraints. Primary keys are specified along with any foreign key and uniqueness constraints between the tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Basic Schema of CMS

Acronyms Used:

U - Uniqueness Constraint / Entity Integrity Constraint


NN - Not Null
FK - ForeignKey Constraint / Referential Integrity Constraint
PK - PrimaryKey Constraint (U,NN)

Schema Constructs:

LoginTable

ColumnName DataType Constraints

LoginID int (autoincrement) PK (U,NN)


Password varchar(20) NN
Email varchar(30) NN, U
Type int NN

PK is LoginID

Patient

ColumnName DataType Constraints

PatientID integer PK, FK


Name varchar(20) NN
Phone char(12)
Address varchar(40)
BirthDate Date NN
Gender char(1) NN

PatientID is the PrimaryKey and also a ForeignKey which is referencing LoginID in 'LoginDetails' Construct
Department

ColumnName DataType Constraints

DeptNo int PK
DeptName varchar(20) NN,U
Description varchar(100)

DeptNo is PK

Doctor

ColumnName DataType Constraints

DoctorID integer PK, FK


Name varchar(20) NN
Phone char(12)
Address varchar(40)
BirthDate Date NN
Gender char(1) NN
Deptno integer FK, NN
Charges_Per_Visit float NN
MonthlySalary float
ReputeIndex float
Patients_Treated integer NN
Qualification varchar(50) NN
Specialization varchar(50)
Work_Experience integer
Status integer NN

DoctorID is the PrimaryKey and also a ForeignKey which is referencing LoginID in 'LoginDetails' Construct
And Deptno is FK from Department Table
OtherStaff

ColumnName DataType Constraints

StaffID int (autoincrement) PK


Name varchar(20) NN
Phone char(12)
Address varchar(30)
Designation varchar(15) NN
Gender char(1) NN
BirthDate Date
Highest_Qualification varchar(20)
Salary float

PK is StaffID.

Appointment

ColumnName DataType Constraints

AppointID int (autoincrement) PK(U,NN)


DoctorID integer FK
PatientID integer FK
Date Date
Appointment_Status integer
Bill_Amount float
Bill_Status int
Disease varchar(30)
Progress varchar(50)
Prescription varchar(60)

PK is AppointmentID and DoctorID is FK from Doctor Table and PatientID is FK from Patient Table

Pending_Feedback

ColumnName DataType Constraints

AppointmentID integer PK, FK


DoctorID integer FK,NN
PatientID integer FK,NN

AppointmentID is PK and also FK from Appointment Construct


DoctorID is FK from Doctor Table
PatientID is FK from Patient Table

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