X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=sql%2Fschema.dot;h=9fb24285cf092e8e83c9a9d1308bd57f62c3e12e;hb=b64d6c81558b47272c0b2311a93e32de0bfbb1b8;hp=b189159ac8281ee7932ea7383f655a29b783e703;hpb=8abee5d598cfb1b52e0d1b929db6dc6c33f5bddd;p=eq%2F.git diff --git a/sql/schema.dot b/sql/schema.dot index b189159..9fb2428 100644 --- a/sql/schema.dot +++ b/sql/schema.dot @@ -2,89 +2,132 @@ digraph schema { graph [ rankdir = "LR" ]; - family [ - label = " family|| hofh_id| name| name_id| indiv_id| companionship| visit_pri| visit_notes| valid" + activity [ + label = "activity|| activity| assignment| date| notes" shape = "record" ]; - 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" + appointment [ + label = "appointment|| appointment|

presidency| family| individual | date| time| location| uid" shape = "record" ]; - companionship [ - label = " companionship|| indiv| district| valid" + assignment [ + label = "assignment|| assignment| name| abbreviation" shape = "record" ]; - visit [ - label = " visit|| family| companionship| companion1| companion2| date| notes| visited| visit_type" + attendance [ + label = "attendance|| individual| date" shape = "record" ]; - interview [ - label = " interview|| interviewer| indiv| date| notes| interview_type" + calling [ + label = "calling|| individual| organization|

position| sustained" shape = "record" ]; - activity [ - label = " activity|| assignment| date| notes" + companion [ + label = "companion|| companion| individual| companionship| scheduling_priority| valid" shape = "record" ]; - participation [ - label = "participation|| indiv| activity" + companionship [ + label = "companionship|| companionship| district| valid" shape = "record" ]; - attendance [ - label = "attendance|| indiv| date" + district [ + label = "district|| district| supervisor| valid" shape = "record" ]; - appointment [ - label = " appointment||

presidency| family| indiv | date| time| location| uid" + individual [ + label = "individual|| individual| mls_id| name| fullname| address|

phone| email| hh position| priesthood| steward| scheduling_priority| attending| valid" shape = "record" ]; - assignment [ - label = " assignment|| name| code" + family [ + label = "family|| family| individual| companionship| scheduling_priority| valid" shape = "record" ]; - calling [ - label = "calling|| indiv_id| name| organization|

position| sequence| sustained" + participation [ + label = "participation|| individual| activity" shape = "record" ]; - district [ - label = " district|| name| supervisor| valid" + interview [ + label = "interview|| interview| interviewer| individual| date| notes| interview_type" shape = "record" ]; presidency [ - label = "

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

presidency| individual| district| email| president| counselor| secreatary| valid" + shape = "record" + ]; + visit [ + label = "visit|| visit| family| companionship| companion1| companion2| date| notes| visited| visit_type" shape = "record" ]; willingness [ - label = " indiv|| assignment| willing" + label = "willingness|| individual| assignment| willing" + shape = "record" + ]; + scheduling_priority [ + label = "scheduling_priority|| scheduling_priority|

priority| notes" + shape = "record" + ]; + email_list [ + label = "email_list|| email_list| name" + shape = "record" + ]; + email_list_membership [ + label = "email_list_membership|| individual| email_list" + shape = "record" + ]; + accomplishment [ + label = "accomplishment|| accomplishment| individual| date| task| note" + shape = "record" + ]; + task [ + label = "task|| task| name| description" shape = "record" ]; - family:c -> companionship:c - companionship:i -> indiv:i + activity:s -> assignment:a - appointment:i -> indiv:i + appointment:p -> presidency:p appointment:f -> family:f + appointment:i -> individual:i - interview:il -> indiv:i - interview:i -> indiv:i + attendance:i -> individual:i + + calling:i -> individual:i - presidency:i -> indiv:i - presidency:d -> district:d + companion:cp -> companionship:c + companion:i -> individual:i + companion:sp -> scheduling_priority:sp - willingness:i -> indiv:i - willingness:a -> assignment:a + companionship:d -> district:d + + district:s -> individual:i + + individual:sp -> scheduling_priority:sp + + family:i -> individual:i + family:c -> companionship:c + family:sp -> scheduling_priority:sp - activity:s -> assignment:a + participation:i -> individual:i + participation:a -> activity:a + + interview:il -> individual:i + interview:i -> individual:i + + presidency:i -> individual:i + presidency:d -> district:d visit:c -> companionship:c visit:f -> family:f visit:c1 -> presidency:i visit:c2 -> presidency:i - participation:i -> indiv:i - participation:a -> activity:a - - attendance:i -> indiv:i + willingness:i -> individual:i + willingness:a -> assignment:a - indiv:f -> family:f + email_list_membership:i -> individual:i + email_list_membership:e -> email_list:e + + accomplishment:i -> individual:i + accomplishment:t -> task:t + }