CREATE TABLE Patient
email varchar(20) NOT NULL,
password varchar(10) NOT NULL,
name varchar(10) NOT NULL,
address varchar(10) NOT NULL,
gender VARCHAR(10) NOT NULL
);
CREATE TABLE MedicalHistory
id NUMBER NOT NULL,
conditions VARCHAR(30) NOT NULL,
surgeries VARCHAR(20) NOT NULL,
medication VARCHAR(20) NOT NULL
);
CREATE TABLE Doctor
email varchar(20) NOT NULL,
gender varchar(10) NOT NULL,
password varchar(10) NOT NULL,
name varchar(10) NOT NULL
);
CREATE TABLE PatientsAttendAppointments
patient varchar(20) NOT NULL,
appt int NOT NULL,
concerns varchar(10) NOT NULL,
symptoms varchar(10) NOT NULL
);
CREATE TABLE PatientsFillHistory
patient varchar(50) NOT NULL,
history int NOT NULL
);
CREATE TABLE Diagnose
appt int NOT NULL,
doctor varchar(20) NOT NULL,
diagnosis varchar(10) NOT NULL,
prescription varchar(20) NOT NULL
);
CREATE TABLE DocsHaveSchedules
sched int NOT NULL,
doctor varchar(20) NOT NULL
);
CREATE TABLE DoctorViewsHistory
history int NOT NULL,
doctor varchar(20) NOT NULL
);