You are on page 1of 2

TABLE FIELD NAME DATA LENGTH KEY NOT AI DESCRIPTION

TYPE NULL
patient patient_id int 11 PK YES YES unique id for
patient
lastname varchar 50 lastname of the
patient
firstname varchar 50 firstname of the
patient
province_id int 50 province id of the
patient
municipality_id int 50 municipality of
the patient
barangay_id int 50 barangay id of
the patient
birthday varchar 50 birthday of the
patient
sex varchar 50 sex of the patient
email varchar 50 Email of the
patient
age varchar 50 age of the patient
appointment appointment_id int 11 PK YES YES unique id for
appointment
patient_id int 11 FK YES YES foreign id for
patient
date_appointm varchar 50 date appointment
ent of the
appointment
date_apply varchar 50 date apply of the
appointment
schedule_id int 11 FK YES YES foreign id for
schedule
procedure procedure_id int 11 PK YES YES unique id for
procedure
procedure_type varchar 50 procedure type of
the procedure
description varchar 50 description of the
procedure
schedule schedule_id int 11 PK YES YES unique id for
schedule
procedure_id varchar 50 FK YES YES foreign id for
procedure
start_time varchar 50 start time of the
schedule
end_time varchar 50 end time of the
schedule
day varchar 50 day of the
schedule
province province_id int 11 PK YES YES unique id for
province
name varchar 50 name of the
province
city_municipality municipality_id int 11 PK YES YES unique id for
municipality
name varchar 50 name of the city
municipality
province_id int 11 FK YES YES foreign id for
province
barangay barangay_id int 11 PK YES YES unique id for
barangy
name varchar 50 name of the
barangay
municipality_id id 11 FK YES YES foreign id for
municipality
users users_id int 11 PK YES YES unique id for
users
firstname varchar 50 firstname of the
user
lastname varchar 50 lastname of the
users
username varchar 50 username of the
users
password varchar 50 password of the
users
account_type varchar 50 account type of
the users
payment_id int 11 FK YES YES foreign id for
payment
payment payment_id int 11 PK YES YES unique id for
payment
procedure_id int 11 procedure of the
payment
price varchar 50 price of the
payment

You might also like