Minor restructuring of program locations.
[eq/.git] / sql / schema.dot
1 digraph schema {
2   graph [
3     rankdir = "LR"
4   ];
5   family   [
6     label = "<f> family||<c> companionship|<n> name_id|<i> hofh_id|<e> elder_id|<vp> visit_pri|<vn> visit_notes|<v> valid"
7     shape = "record"
8   ];
9   elder   [
10     label = "<e> elder||<n> name|<p> phone|<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||<e> elder|<a> aaronic|<d> district|<v> valid"
15     shape = "record"
16   ];
17   visit   [
18     label = "<v> visit||<f> family|<c> companionship|<t> date|<n> notes|<v> visited"
19     shape = "record"
20   ];
21   ppi   [
22     label = "<p> ppi||<i> interviewer|<e> elder|<t> date|<n> notes|<p> eqpresppi"
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||<e> elder|<a> activity"
31     shape = "record"
32   ];
33   attendance   [
34     label = "attendance||<e> elder|<d> date"
35     shape = "record"
36   ];
37   child [
38     label = "<c> child||<f> family|<i> indiv_id|<n> name|<b> birthday|<v> valid"
39     shape = "record"
40   ]; 
41   parent        [
42     label = "<p> parent||<f> family|<n> name|<b> birthday|<p> phone|<a> address|<i>indiv_id|<v> valid"
43     shape = "record"
44   ]; 
45   aaronic       [
46     label = "<a> aaronic||<n> name|<p> phone|<v> valid"
47     shape = "record"
48   ];
49   appointment   [
50     label = "<a> appointment||<p> presidency|<f> family|<e> elder |<d> date|<t> time|<u> uid"
51     shape = "record"
52   ];
53   assignment    [
54     label = "<a> assignment||<n> name|<c> code"
55     shape = "record"
56   ];
57   calling       [
58     label = "calling||<i> indiv_id|<n> name|<o> organization|<p> position|<s> sequence|<t> sustained"
59     shape = "record"
60   ];
61   district      [
62     label = "<d> district||<n> name|<s> supervisor|<v> valid"
63     shape = "record"
64   ];
65   interview     [
66     label = "<i> interview||<in> interviewer|<e> elder|<a> aaronic|<d> date|<n> notes"
67     shape = "record"
68   ];
69   presidency    [
70     label = "<p> presidency||<e> elder|<d> district|<n> name|<em> email|<pr> president|<cn> counselor|<sec> secreatary|<v> valid"
71     shape = "record"
72   ];
73   willingness   [
74     label = "<e> elder||<a> assignment|<w> willing"
75     shape = "record"
76   ];
77
78   family:c        -> companionship:c
79   companionship:e -> elder:e
80   companionship:a -> aaronic:a
81
82   appointment:e   -> elder:e
83   appointment:f   -> family:f
84
85   interview:e     -> elder:e
86   interview:in    -> elder:e
87   interview:a     -> aaronic:a
88
89   presidency:e    -> elder:e
90   presidency:d    -> district:d
91
92   willingness:e   -> elder:e
93   willingness:a   -> assignment:a
94
95   activity:s      -> assignment:a
96
97   visit:c         -> companionship:c
98   visit:f         -> family:f
99
100   ppi:i           -> elder:e
101   ppi:e           -> elder:e
102
103   participation:e -> elder:e
104   participation:a -> activity:a
105
106   attendance:e    -> elder:e
107
108   child:f         -> family:f
109   parent:f        -> family:f
110 }