Skip to content

Instantly share code, notes, and snippets.

@Israel025
Last active April 16, 2019 23:58
Show Gist options
  • Save Israel025/347392d12d09d2e407004db43458fdd2 to your computer and use it in GitHub Desktop.
Save Israel025/347392d12d09d2e407004db43458fdd2 to your computer and use it in GitHub Desktop.
Coding Hours Challenge - TimeOff App DB Modelling
Step 1: Identifying Entities:
Staff
Admin
Leave
Step 2: Identifying Attributes and Define Attributes Data types:
Staff: staff_id(int), first_name(string), last_name(string), email(string), organization(string), designation(string),
department(string), manager(string), phone(string), dob(date), gender(string), country(string), city(string), state(string)
Admin: admin_id(int), first_name(string), last_name(string), email(string),gender(string), designation(string), organization(string),
phone(string)
leave: leave_id(int), leave_type(string),
Step 3: Identifying Entities Relationships:
staff - leave (1:M)
Admin - staff (1:M)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment