Skip to content

Instantly share code, notes, and snippets.

@jdecode
Created March 5, 2021 15:54
Show Gist options
  • Save jdecode/d4a0f1ed1a56f9fbf9b653ebc5de7811 to your computer and use it in GitHub Desktop.
Save jdecode/d4a0f1ed1a56f9fbf9b653ebc5de7811 to your computer and use it in GitHub Desktop.
Laravel GraphQL
Company
- hasMany : User
- hasMany : Project
- name
- active
Project
- hasMany : Task
- hasMany : User
- belongsTo : Company
- name
- active
- type (Web, Mobile, BOTH)
- time_period (0, 1, 2.....)
User
- belongsTo : Project
- belongsTo : Company
- hasMany : Task
- name
- email
- active
- gender
Task
- belongsTo : User
- belongsTo : Project
- hasMany : TaskHistory
- name
- start_time
- end_time
- active
- completed
TaskHistory
- belongsTo : Task
- belongsTo : User
- what_changed
- old_value
- new_value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment