removed name field from tc_district
[eq/.git] / sql / schema.dot
1 digraph schema {
2   graph [
3     rankdir = "LR"
4   ];
5   activity   [
6     label = "activity||<a> activity|<s> assignment|<t> date|<n> notes"
7     shape = "record"
8   ];
9   appointment   [
10     label = "appointment||<a> appointment|<p> presidency|<f> family|<i> individual |<d> date|<t> time|<l> location|<u> uid"
11     shape = "record"
12   ];
13   assignment    [
14     label = "assignment||<a> assignment|<n> name|<ab> abbreviation"
15     shape = "record"
16   ];
17   attendance   [
18     label = "attendance||<i> individual|<d> date"
19     shape = "record"
20   ];
21   calling       [
22     label = "calling||<n> name|<o> organization|<p> position|<s> sustained"
23     shape = "record"
24   ];
25   companionship   [
26     label = "companionship||<c> companionship|<i> individual|<d> district|<sp> scheduling_priority|<v> valid"
27     shape = "record"
28   ];
29   district      [
30     label = "district||<d> district|<s> supervisor|<v> valid"
31     shape = "record"
32   ];
33   individual   [
34     label = "individual||<i> individual|<id> mls_id|<n> name|<a> address|<p> phone|<em> email|<hh> hh position|<pr> priesthood|<st> steward|<sp> scheduling_priority|<a> attending|<v> valid"
35     shape = "record"
36   ];
37   family   [
38     label = "family||<f> family|<i> individual|<c> companionship|<sp> scheduling_priority|<v> valid"
39     shape = "record"
40   ];
41   participation   [
42     label = "participation||<i> individual|<a> activity"
43     shape = "record"
44   ];
45   interview   [
46     label = "interview||<in> interview|<i> interviewer|<il> individual|<t> date|<n> notes|<it> interview_type"
47     shape = "record"
48   ];
49   presidency    [
50     label = "presidency||<p> presidency||<i> individual|<d> district|<em> email|<pr> president|<cn> counselor|<sec> secreatary|<v> valid"
51     shape = "record"
52   ];
53   visit   [
54     label = "visit||<v> visit|<f> family|<c> companionship|<c1> companion1|<c2> companion2|<t> date|<n> notes|<v> visited|<vt> visit_type"
55     shape = "record"
56   ];
57   willingness   [
58     label = "willingness||<i> individual|<a> assignment|<w> willing"
59     shape = "record"
60   ];
61   scheduling_priority   [
62     label = "scheduling_priority||<sp> scheduling_priority|<p> priority|<n> notes"
63     shape = "record"
64   ];
65   email_list   [
66     label = "email_list||<e> email_list|<n> name"
67     shape = "record"
68   ];
69   email_list_membership   [
70     label = "email_list_membership||<i> individual|<e> email_list"
71     shape = "record"
72   ];
73   accomplishment   [
74     label = "accomplishment||<a> accomplishment|<i> individual|<d> date|<t> task|<n> note"
75     shape = "record"
76   ];
77   task   [
78     label = "task||<t> task|<n> name|<d> description"
79     shape = "record"
80   ];
81
82   activity:s      -> assignment:a
83
84   appointment:p   -> presidency:p
85   appointment:f   -> family:f
86   appointment:i   -> individual:i
87
88   attendance:i    -> individual:i
89
90   companionship:i -> individual:i
91   companionship:d -> district:d
92   companionship:sp -> scheduling_priority:sp
93   
94   district:s      -> individual:i
95   
96   individual:sp   -> scheduling_priority:sp
97   
98   family:i        -> individual:i
99   family:c        -> companionship:c
100   family:sp       -> scheduling_priority:sp
101
102   participation:i -> individual:i
103   participation:a -> activity:a
104
105   interview:il    -> individual:i
106   interview:i     -> individual:i
107
108   presidency:i    -> individual:i
109   presidency:d    -> district:d
110
111   visit:c         -> companionship:c
112   visit:f         -> family:f
113   visit:c1        -> presidency:i
114   visit:c2        -> presidency:i
115
116   willingness:i   -> individual:i
117   willingness:a   -> assignment:a
118
119   email_list_membership:i  -> individual:i
120   email_list_membership:e  -> email_list:e
121   
122   accomplishment:i   -> individual:i
123   accomplishment:t   -> task:t
124   
125 }