X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=sql%2Fschema.dot;h=2a88bf6072a955f82ac12042a9eb313b59de2526;hb=c0138a3e56518fd73dfe4d93c30d8e36ce062d87;hp=ee12da4683106b7f718c9ab99837e6cb61a23068;hpb=1c42e4dcbd4ebc672c7be3059a6e36ef1c9b0b74;p=eq%2F.git diff --git a/sql/schema.dot b/sql/schema.dot index ee12da4..2a88bf6 100644 --- a/sql/schema.dot +++ b/sql/schema.dot @@ -2,89 +2,124 @@ 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" + ]; + appointment [ + label = "appointment|| appointment|

presidency| family| individual | date| time| location| uid" + shape = "record" + ]; + assignment [ + label = "assignment|| assignment| name| abbreviation" + shape = "record" + ]; + attendance [ + label = "attendance|| individual| date" shape = "record" ]; - 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" + calling [ + label = "calling|| name| organization|

position| sustained" shape = "record" ]; companionship [ - label = " companionship|| indiv| district| valid" + label = "companionship|| companionship| individual| district| scheduling_priority| valid" shape = "record" ]; - visit [ - label = " visit|| family| companionship| companion1| companion2| date| notes| visited| visit_type" + district [ + label = "district|| district| supervisor| valid" shape = "record" ]; - interview [ - label = " interview|| interviewer| indiv| date| notes| interview_type" + individual [ + label = "individual|| individual| mls_id| name| address|

phone| email| hh position| priesthood| steward| scheduling_priority| attending| valid" shape = "record" ]; - activity [ - label = " activity|| assignment| date| notes" + family [ + label = "family|| family| individual| companionship| scheduling_priority| valid" shape = "record" ]; participation [ - label = "participation|| indiv| activity" + label = "participation|| individual| activity" shape = "record" ]; - attendance [ - label = "attendance|| indiv| date" + interview [ + label = "interview|| interview| interviewer| individual| date| notes| interview_type" shape = "record" ]; - appointment [ - label = " appointment||

presidency| family| indiv | date| time| location| uid" + presidency [ + label = "presidency||

presidency|| individual| district| email| president| counselor| secreatary| valid" shape = "record" ]; - assignment [ - label = " assignment|| name| code" + visit [ + label = "visit|| visit| family| companionship| companion1| companion2| date| notes| visited| visit_type" shape = "record" ]; - calling [ - label = "calling|| indiv_id| name| organization|

position| sequence| sustained" + willingness [ + label = "willingness|| individual| assignment| willing" shape = "record" ]; - district [ - label = " district|| name| supervisor| valid" + scheduling_priority [ + label = "scheduling_priority|| scheduling_priority|

priority| notes" shape = "record" ]; - presidency [ - label = "

presidency|| indiv| district| name| email| president| counselor| secreatary| valid" + email_list [ + label = "email_list|| email_list| name" shape = "record" ]; - willingness [ - label = " indiv|| assignment| willing" + 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 - presidency:i -> indiv:i - presidency:d -> district:d + companionship:i -> individual:i + companionship:d -> district:d + companionship:sp -> scheduling_priority:sp + + district:s -> individual:i + + individual:sp -> scheduling_priority:sp + + family:i -> individual:i + family:c -> companionship:c + family:sp -> scheduling_priority:sp - willingness:i -> indiv:i - willingness:a -> assignment:a + participation:i -> individual:i + participation:a -> activity:a - activity:s -> assignment: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 + }