0% found this document useful (0 votes)
61 views4 pages

Table 3.7 Appointment Table

The document describes the structure of 10 database tables used to store information for a hospital management system. The tables include Appointment, Billing, Doctors, Inventory, Medicine, Patients, Prescription, Services, and Users tables. Each table lists the column name, data type, whether it can be null, and default value for each attribute.

Uploaded by

pearl catcharro
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)
61 views4 pages

Table 3.7 Appointment Table

The document describes the structure of 10 database tables used to store information for a hospital management system. The tables include Appointment, Billing, Doctors, Inventory, Medicine, Patients, Prescription, Services, and Users tables. Each table lists the column name, data type, whether it can be null, and default value for each attribute.

Uploaded by

pearl catcharro
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/ 4

Table 3.

7
Appointment Table
Column Type Null Default
id (primary) int(11) No
doctor_id Int(11) No
patient_id int(11) No
type varchar(500) No
date_schedule date No
time_schedule time No
service varchar(500) No
date_created datetime No

Table 3.8
Billing Table
Column Type Null Default
id (primary) int(11) No
billing_no varchar(50) No
patient_id int(11) Yes Null
doctor_id int(11) Yes Null
philhealth varchar(50) Yes Null
cash varchar(50) Yes Null
status varchar(50) Yes Null
total varchar(50) Yes Null
date date Yes Null

Table 4.0
Doctors tables
Column Type Null Default
id (primary) int(11) No
profile text Yes Null
first_name varchar(50) No
middle_name varchar(50) No
last_name varchar(50) No
birthday datetime No
contact_no varchar(20) No
specialization varchar(15) No
address varchar(250) No
email varchar(50) No
status varchar(15) No
Table 4.1
Inventory table
Column Type Null Default
id (primary) int(11) No
inventory_no varchar(50) Yes Null
medicine_id varchar(50) Yes Null
brand_name text Yes Null
type varchar(50) Yes Null
quantity int(11) Yes Null
price int(11) Yes Null
total int(11) Yes Null
status varchar(50) Yes Null
date_expire date Yes Null

Table 4.2
Medicine table
Column Type Null Default
id int(11) No
medicine_no Varchar(50) Yes Null
name text Yes Null
description text Yes Null
status text Yes Null
date_added text Yes Null

Table 4.3
Patients table
Column Type Null Default
id (primary) int(11) No
doctor_id int(11) No
patient_no varchar(15) No
first_name varchar(50) No
middle_name varchar(50) No
last_name varchar(50) No
birthday date No
gender varchar(10) No
email varchar(50) No
contact_no varchar(20) No
address varchar(250) No
occupation varchar(250) No
mother_name varchar(100) No
mother_age int(11) No
mother_occupation varchar(200) No
father_name varchar(100) No
father_age int(11) No
father_occupation varchar(200) No
delivery_name varchar(100) No
spouse_name varchar(100) No
spouse_occupation varchar(200) No
ob_score varchar(50) No
lmp varchar(200) No
edc varchar(200) No
ttt_status varchar(200) No
menarche varchar(200) No
date_created datetime No
type varchar(15) No
status varchar(10) No

Table 4.4
Prescription table
Column Type Null Default
id (primary) int(11) No
prescription_no varchar(250) Yes Null
patient_id int(11) Yes Null
doctor_id int(11) Yes Null
generic_id int(11) Yes Null
brand_id int(11) Yes Null
price varchar(50) Yes Null
quantity varchar(50) Yes Null
cash varchar(50) Yes Null
total varchar(50) Yes Null
status varchar(50) Yes Null
date_added date Yes Null
Table 4.5
Services table
Column Type Null Default
id (primary) int(11) No
service_no varchar(50) Yes Null
name varchar(500) Yes Null
amount varchar(50) Yes Null
status varchar(50) Yes Null

Table 4.6
Users table
Column Type Null Default
id (primary) int(11) No
first_name varchar(50) No
last_name varchar(50) No
date_created datetime No
status varchar(50) No

You might also like