X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=sql%2Fschema.dot;h=b189159ac8281ee7932ea7383f655a29b783e703;hb=868fb3cf0a52bd6d4f613c30e40f75ad35fde4b3;hp=16530d485f274edd1f550fa3e6136fd99df1fa6c;hpb=477ea41b8890c9ffefd9f9b0fb58367492a59de9;p=eq%2F.git diff --git a/sql/schema.dot b/sql/schema.dot index 16530d4..b189159 100644 --- a/sql/schema.dot +++ b/sql/schema.dot @@ -3,15 +3,15 @@ digraph schema { rankdir = "LR" ]; family [ - label = " family|| companionship| name_id| hofh_id| elder_id| visit_pri| visit_notes| valid" + label = " family|| hofh_id| name| name_id| indiv_id| companionship| visit_pri| visit_notes| valid" shape = "record" ]; - elder [ - label = " elder|| name|

phone| email| priesthood| prospective| ppi_pri| ppi_notes| int_pri| int_notes| attending| valid" + indiv [ + label = " indiv|| indiv_id| name| address|

phone| email| family| hh position| priesthood| steward| prospective| ppi_pri| ppi_notes| hti_pri| hti_notes| attending| valid" shape = "record" ]; companionship [ - label = " companionship|| elder| aaronic| district| valid" + label = " companionship|| indiv| district| valid" shape = "record" ]; visit [ @@ -19,7 +19,7 @@ digraph schema { shape = "record" ]; interview [ - label = " interview|| interviewer| elder| aaronic| date| notes| interview_type" + label = " interview|| interviewer| indiv| date| notes| interview_type" shape = "record" ]; activity [ @@ -27,27 +27,15 @@ digraph schema { shape = "record" ]; participation [ - label = "participation|| elder| activity" + label = "participation|| indiv| activity" shape = "record" ]; attendance [ - label = "attendance|| elder| date" - shape = "record" - ]; - child [ - label = " child|| family| indiv_id| name| birthday| valid" - shape = "record" - ]; - parent [ - label = "

parent|| family| name| birthday|

phone| address|indiv_id| valid" - shape = "record" - ]; - aaronic [ - label = " aaronic|| name|

phone| email| valid" + label = "attendance|| indiv| date" shape = "record" ]; appointment [ - label = " appointment||

presidency| family| elder | date| time| uid" + label = " appointment||

presidency| family| indiv | date| time| location| uid" shape = "record" ]; assignment [ @@ -63,43 +51,40 @@ digraph schema { shape = "record" ]; presidency [ - label = "

presidency|| elder| district| name| email| president| counselor| secreatary| valid" + label = "

presidency|| indiv| district| name| email| president| counselor| secreatary| valid" shape = "record" ]; willingness [ - label = " elder|| assignment| willing" + label = " indiv|| assignment| willing" shape = "record" ]; family:c -> companionship:c - companionship:e -> elder:e - companionship:a -> aaronic:a + companionship:i -> indiv:i - appointment:e -> elder:e + appointment:i -> indiv:i appointment:f -> family:f - interview:e -> elder:e - interview:i -> elder:e - interview:a -> aaronic:a + interview:il -> indiv:i + interview:i -> indiv:i - presidency:e -> elder:e + presidency:i -> indiv:i presidency:d -> district:d - willingness:e -> elder:e + willingness:i -> indiv:i willingness:a -> assignment:a activity:s -> assignment:a visit:c -> companionship:c visit:f -> family:f - visit:c1 -> presidency:e - visit:c2 -> presidency:e + visit:c1 -> presidency:i + visit:c2 -> presidency:i - participation:e -> elder:e + participation:i -> indiv:i participation:a -> activity:a - attendance:e -> elder:e + attendance:i -> indiv:i - child:f -> family:f - parent:f -> family:f + indiv:f -> family:f }