Skip to content

Instantly share code, notes, and snippets.

@dipanjal
Last active July 31, 2019 16:04
Show Gist options
  • Save dipanjal/01c4176c091a181f7a6e3e2ce477b9a6 to your computer and use it in GitHub Desktop.
Save dipanjal/01c4176c091a181f7a6e3e2ce477b9a6 to your computer and use it in GitHub Desktop.
Pondit ER diagram
Table user_types{
id int [pk, not null, unique]
type text
description text
created_at timestamp
updated_at timestamp
}
Table users{
id int [pk, not null, unique]
user_type_id int [not null, ref: > user_types.id]
first_name text
last_name text
email text
phone text
dp_url text
created_at timestamp
updated_at timestamp
}
Table teachers{
id int [pk, not null, unique]
user_id int [not null, ref: > users.id]
profile_video_url text
}
Table teaching_experience{
id int [pk, not null, unique]
teacher_id int [not null, ref: > teachers.id]
topic text
description text
year_from timestamp
year_to timestamp
created_at timestamp
updated_at timestamp
}
Table teacher_schedule{
id int [pk, not null, unique]
teacher_id int [not null, ref: > teachers.id]
time_from timestamp
time_to timestamp
created_at timestamp
updated_at timestamp
}
Table language_proficiency{
id int [pk, not null, unique]
user_id int [not null, ref: > users.id]
language text
description text
certificate text
certificate_image_url text
is_varified boolean
created_at timestamp
updated_at timestamp
}
Table education{
id int [pk, not null, unique]
user_id int [not null, ref: > users.id]
degree text
institution_name text
certificate text
certificate_image_url text
education_year timestamp
is_varified boolean
created_at timestamp
updated_at timestamp
}
@dipanjal
Copy link
Author

Init commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment