X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=sql%2Fschema.dot;h=ee12da4683106b7f718c9ab99837e6cb61a23068;hb=1c42e4dcbd4ebc672c7be3059a6e36ef1c9b0b74;hp=6c3999a5127d853a832593348fc7b8ab27ea7283;hpb=661bea335343432a698ea1a37d204f351033deb8;p=eq%2F.git diff --git a/sql/schema.dot b/sql/schema.dot index 6c3999a..ee12da4 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| birthday| address|

phone| email| family| hh position| priesthood| steward| prospective| ppi_pri| ppi_notes| int_pri| int_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,41 +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: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 }