Skip to content

Instantly share code, notes, and snippets.

@Ghost141
Created October 6, 2014 13:55
Show Gist options
  • Save Ghost141/c46c7174a1a37a1ce530 to your computer and use it in GitHub Desktop.
Save Ghost141/c46c7174a1a37a1ce530 to your computer and use it in GitHub Desktop.
CREATE TABLE patient(
patient_id,
name,
birth_date
)
CREATE TABLE user_role_lu ( --1 -> admin, 2 -> district_manager, 3 -> hospital_manager, 4 -> doctor, 5 -> patient
user_role_id,
name,
description
)
CREATE TABLE hospital(
hospital_id,
name,
district_id
)
CREATE TABLE user(
user_id,
user_role_id
)
CREATE TABLE patient_data(
patient_data_id,
patient_id,
hospital_id
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment