removing birthday field from tc_indiv since we don't use it and it is personal info
[eq/.git] / sql / schema.dot
1 digraph schema {
2   graph [
3     rankdir = "LR"
4   ];
5   family   [
6     label = "<f> family||<i> hofh_id|<n> name|<ni> name_id|<i> indiv_id|<c> companionship|<vp> visit_pri|<vn> visit_notes|<v> valid"
7     shape = "record"
8   ];
9   indiv   [
10     label = "<i> indiv||<id> indiv_id|<n> name|<a> address|<p> phone|<em> email|<f> family|<hh> hh position|<po> priesthood|<st> steward|<pr> prospective|<pp> ppi_pri|<t> ppi_notes|<ip> int_pri|<in> int_notes|<a> attending|<v> valid"
11     shape = "record"
12   ];
13   companionship   [
14     label = "<c> companionship||<i> indiv|<d> district|<v> valid"
15     shape = "record"
16   ];
17   visit   [
18     label = "<v> visit||<f> family|<c> companionship|<c1> companion1|<c2> companion2|<t> date|<n> notes|<v> visited|<vt> visit_type"
19     shape = "record"
20   ];
21   interview   [
22     label = "<in> interview||<i> interviewer|<il> indiv|<t> date|<n> notes|<it> interview_type"
23     shape = "record"
24   ];
25   activity   [
26     label = "<a> activity||<s> assignment|<t> date|<n> notes"
27     shape = "record"
28   ];
29   participation   [
30     label = "participation||<i> indiv|<a> activity"
31     shape = "record"
32   ];
33   attendance   [
34     label = "attendance||<i> indiv|<d> date"
35     shape = "record"
36   ];
37   appointment   [
38     label = "<a> appointment||<p> presidency|<f> family|<i> indiv |<d> date|<t> time|<l> location|<u> uid"
39     shape = "record"
40   ];
41   assignment    [
42     label = "<a> assignment||<n> name|<c> code"
43     shape = "record"
44   ];
45   calling       [
46     label = "calling||<i> indiv_id|<n> name|<o> organization|<p> position|<s> sequence|<t> sustained"
47     shape = "record"
48   ];
49   district      [
50     label = "<d> district||<n> name|<s> supervisor|<v> valid"
51     shape = "record"
52   ];
53   presidency    [
54     label = "<p> presidency||<i> indiv|<d> district|<n> name|<em> email|<pr> president|<cn> counselor|<sec> secreatary|<v> valid"
55     shape = "record"
56   ];
57   willingness   [
58     label = "<i> indiv||<a> assignment|<w> willing"
59     shape = "record"
60   ];
61
62   family:c        -> companionship:c
63   companionship:i -> indiv:i
64
65   appointment:i   -> indiv:i
66   appointment:f   -> family:f
67
68   interview:il    -> indiv:i
69   interview:i     -> indiv:i
70
71   presidency:i    -> indiv:i
72   presidency:d    -> district:d
73
74   willingness:i   -> indiv:i
75   willingness:a   -> assignment:a
76
77   activity:s      -> assignment:a
78
79   visit:c         -> companionship:c
80   visit:f         -> family:f
81   visit:c1        -> presidency:i
82   visit:c2        -> presidency:i
83
84   participation:i -> indiv:i
85   participation:a -> activity:a
86
87   attendance:i    -> indiv:i
88
89   indiv:f        -> family:f
90 }