/
models.dot
28 lines (28 loc) · 3.37 KB
/
models.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
digraph models_diagram {
graph[overlap=false, splines=true]
"Company" [shape=Mrecord, label="{Company|id :integer\lname :string\lcreated_at :datetime\lupdated_at :datetime\lnum_employees :integer\ltotal_money_raised :string\ltwitter_username :string\lcategory_code :string\lcity :string\ltwitter_followers :integer\lcareer_page_link :string\lyear_founded :integer\loverview :text\l}"]
"Identity" [shape=Mrecord, label="{Identity|id :integer\luid :string\lprovider :string\luser_id :integer\loauth_token :string\loauth_expires_at :datetime\l}"]
"Job" [shape=Mrecord, label="{Job|id :integer\llink :string\lcreated_at :datetime\lupdated_at :datetime\ltitle :string\lfull_text :text\lis_draft :boolean\lcompany_id :integer\ldept :string\lyears_exp :integer\lsub_dept :string\ldescription :text\lkey_phrases :string\lreq_skills :string\l}"]
"SearchSuggestion" [shape=Mrecord, label="{SearchSuggestion|id :integer\lterm :string\lcreated_at :datetime\lupdated_at :datetime\lpopularity :integer\l}"]
"User" [shape=Mrecord, label="{User|id :integer\lemail :string\lpassword_digest :string\lsession_token :string\lcreated_at :datetime\lupdated_at :datetime\ljob_settings :text\lis_admin :boolean\lguest :boolean\lavatar_file_name :string\lavatar_content_type :string\lavatar_file_size :integer\lavatar_updated_at :datetime\lfname :string\llname :string\ltitle :string\llocation :string\lcompany_id :integer\ljob_filters :hstore\l}"]
"UserJob" [shape=Mrecord, label="{UserJob|id :integer\luser_id :integer\lsaved_job_id :integer\lapplied_job_id :integer\lremoved_job_id :integer\l}"]
"UserJobPreapproval" [shape=Mrecord, label="{UserJobPreapproval|id :integer\luser_id :integer\ljob_id :integer\l}"]
"UserSkill" [shape=Mrecord, label="{UserSkill|id :integer\luser_id :integer\lskill :string\llevel :integer\l}"]
"Company" -> "Job" [label="job_listings", arrowtail=odot, arrowhead=crow, dir=both color="#63C118"]
"Company" -> "User" [label="employees", arrowtail=odot, arrowhead=crow, dir=both color="#3092AE"]
"Job" -> "UserJob" [label="user_job_applicants", arrowtail=odot, arrowhead=crow, dir=both color="#A07BA8"]
"Job" -> "UserJob" [label="users_that_saved_job", arrowtail=odot, arrowhead=crow, dir=both color="#5C58B1"]
"Job" -> "UserJob" [label="saved_jobs", arrowtail=odot, arrowhead=crow, dir=both color="#8EC2F9"]
"Job" -> "User" [label="applicants", arrowtail=crow, arrowhead=crow, dir=both color="#BBCE2F"]
"Job" -> "User" [label="saved_users", arrowtail=crow, arrowhead=crow, dir=both color="#69A508"]
"Job" -> "UserJobPreapproval" [arrowtail=odot, arrowhead=crow, dir=both color="#AA19C6"]
"Job" -> "User" [label="preapproved_applicants", arrowtail=crow, arrowhead=crow, dir=both color="#5FD93F"]
"User" -> "UserJob" [arrowtail=odot, arrowhead=crow, dir=both color="#229633"]
"User" -> "Job" [label="jobs_viewed", arrowtail=crow, arrowhead=crow, dir=both color="#5435D2"]
"User" -> "Job" [label="saved_jobs", arrowtail=crow, arrowhead=crow, dir=both color="#2B75B2"]
"User" -> "Job" [label="removed_jobs", arrowtail=crow, arrowhead=crow, dir=both color="#7F1D2F"]
"User" -> "UserJobPreapproval" [arrowtail=odot, arrowhead=crow, dir=both color="#848432"]
"User" -> "Job" [label="preapproved_jobs", arrowtail=crow, arrowhead=crow, dir=both color="#5FDD99"]
"User" -> "Identity" [arrowtail=odot, arrowhead=crow, dir=both color="#B79FE5"]
"User" -> "UserSkill" [arrowtail=odot, arrowhead=crow, dir=both color="#1B8086"]
}