diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-06-13 18:30:01 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-06-13 18:30:01 +0000 |
commit | 18bc4f0a2563a98273dae60b50235346816ca2cf (patch) | |
tree | 4c3b8177f437f790478baeb8ad5ef40fa3282698 /doc/database | |
parent | 8f8e696c078e655e4116d92816036b5ea039a65a (diff) |
Updating database schema diagrams and documentation
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1274 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'doc/database')
-rw-r--r-- | doc/database/ledgersmb.dia | 4902 | ||||
-rw-r--r-- | doc/database/ledgersmb.dot | 114 | ||||
-rw-r--r-- | doc/database/ledgersmb.html | 2981 | ||||
-rw-r--r-- | doc/database/ledgersmb.neato | 114 | ||||
-rw-r--r-- | doc/database/ledgersmb.xml | 3016 | ||||
-rw-r--r-- | doc/database/ledgersmb.zigzag.dia | 5358 |
6 files changed, 14502 insertions, 1983 deletions
diff --git a/doc/database/ledgersmb.dia b/doc/database/ledgersmb.dia index 6972d12b..0b8b9e86 100644 --- a/doc/database/ledgersmb.dia +++ b/doc/database/ledgersmb.dia @@ -457,11 +457,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -523,7 +523,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># vendor_id#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -776,7 +776,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -1113,11 +1113,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -1179,7 +1179,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># customer_id#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -1478,7 +1478,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -2123,7 +2123,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -2276,11 +2276,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -2449,11 +2449,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -2658,7 +2658,7 @@ <dia:real val="6.6000000000000005"/> </dia:attribute> <dia:attribute name="name"> - <dia:string>#custom_field_catalog#</dia:string> + <dia:string>#company#</dia:string> </dia:attribute> <dia:attribute name="comment"> @@ -2734,7 +2734,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># field_id#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#serial#</dia:string> @@ -2757,7 +2757,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># table_id#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -2780,7 +2780,76 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># field_name#</dia:string> + <dia:string># legal_name#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># entity_class_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># primary_location_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># tax_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -2804,9 +2873,42 @@ </dia:attribute> <dia:attribute name="visible_operations"> - <dia:boolean val="false"/> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#company_legal_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((legal_name ~ '[[:alnum ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + </dia:attribute> - <dia:attribute name="operations"/> <dia:attribute name="template"> <dia:boolean val="false"/> @@ -2831,11 +2933,11 @@ <dia:real val="6.6000000000000005"/> </dia:attribute> <dia:attribute name="name"> - <dia:string>#custom_table_catalog#</dia:string> + <dia:string>#company_to_contact#</dia:string> </dia:attribute> <dia:attribute name="comment"> - <dia:string>##</dia:string> + <dia:string># To keep track of the relationship ... pany #</dia:string> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> @@ -2907,10 +3009,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># table_id#</dia:string> + <dia:string># company_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#serial#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -2930,10 +3032,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># extends#</dia:string> + <dia:string># contact_class_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -2953,7 +3055,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># table_name#</dia:string> + <dia:string># contact#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -2977,9 +3079,42 @@ </dia:attribute> <dia:attribute name="visible_operations"> - <dia:boolean val="false"/> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#company_to_contact_contact_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((contact ~ '[[:alnum:]_ ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + </dia:attribute> - <dia:attribute name="operations"/> <dia:attribute name="template"> <dia:boolean val="false"/> @@ -3004,7 +3139,7 @@ <dia:real val="6.6000000000000005"/> </dia:attribute> <dia:attribute name="name"> - <dia:string>#customer#</dia:string> + <dia:string>#company_to_entity#</dia:string> </dia:attribute> <dia:attribute name="comment"> @@ -3080,14 +3215,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># id#</dia:string> + <dia:string># company_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -3103,10 +3238,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># name#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(64)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3126,10 +3261,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># address1#</dia:string> + <dia:string># related_how#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3149,15 +3284,37 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># address2#</dia:string> + <dia:string># created#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#date#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string/> + <dia:string>#('now'::text)::date#</dia:string> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#company_to_entity_check#</dia:string> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="3"/> @@ -3168,14 +3325,129 @@ <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((entity_id <> company_id))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O11"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#company_to_location#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># city#</dia:string> + <dia:string># location_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3195,10 +3467,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># state#</dia:string> + <dia:string># company_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3216,12 +3488,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O12"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#contact_class#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># zipcode#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(10)#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3241,10 +3617,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># country#</dia:string> + <dia:string># class#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3262,12 +3638,149 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#contact_class_class_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK (("class" ~ '[[:alnum:]_ ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O13"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#country#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># contact#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(64)#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3287,10 +3800,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># phone#</dia:string> + <dia:string># name#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3310,10 +3823,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># fax#</dia:string> + <dia:string># short_name#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3333,7 +3846,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># email#</dia:string> + <dia:string># itu#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -3354,9 +3867,223 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#country_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((name ~ '[[:alnum:]_]'::text))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#country_short_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((short_name ~ '[[:alnum ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O14"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#custom_field_catalog#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># notes#</dia:string> + <dia:string># field_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#serial#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># table_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># field_name#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -3377,12 +4104,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O15"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#custom_table_catalog#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># discount#</dia:string> + <dia:string># table_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#numeric#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3402,14 +4233,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># taxincluded#</dia:string> + <dia:string># extends#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#boolean#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#false#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -3425,10 +4256,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># creditlimit#</dia:string> + <dia:string># table_name#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#numeric#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3446,12 +4277,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O16"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#customer#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># This is now a metadata table that ... ment #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># terms#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#smallint#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3471,10 +4406,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># customernumber#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3494,10 +4429,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># cc#</dia:string> + <dia:string># discount#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#numeric#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3517,10 +4452,33 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># bcc#</dia:string> + <dia:string># taxincluded#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#boolean#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string>#false#</dia:string> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># creditlimit#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#numeric#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3540,10 +4498,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># business_id#</dia:string> + <dia:string># terms#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#smallint#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3563,7 +4521,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># taxnumber#</dia:string> + <dia:string># customernumber#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#character varying(32)#</dia:string> @@ -3586,10 +4544,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># sic_code#</dia:string> + <dia:string># cc#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(6)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3609,10 +4567,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># iban#</dia:string> + <dia:string># bcc#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(34)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3632,10 +4590,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># bic#</dia:string> + <dia:string># business_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(11)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3655,10 +4613,56 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># sic_code#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#character varying(6)#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># iban#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#character varying(34)#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># bic#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#character varying(11)#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3754,7 +4758,7 @@ </dia:attribute> <dia:attribute name="value"> - <dia:string/> + <dia:string>#('now'::text)::date#</dia:string> </dia:attribute> <dia:attribute name="visibility"> @@ -3791,6 +4795,29 @@ </dia:attribute> </dia:composite> + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># invoice_notes#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + </dia:attribute> <dia:attribute name="visible_operations"> @@ -3804,7 +4831,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O11"> + <dia:object type="UML - Class" version="0" id="O17"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -3954,7 +4981,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O12"> + <dia:object type="UML - Class" version="0" id="O18"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -4104,7 +5131,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O13"> + <dia:object type="UML - Class" version="0" id="O19"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -4200,11 +5227,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -4277,7 +5304,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O14"> + <dia:object type="UML - Class" version="0" id="O20"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -4427,7 +5454,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O15"> + <dia:object type="UML - Class" version="0" id="O21"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -4448,7 +5475,7 @@ </dia:attribute> <dia:attribute name="comment"> - <dia:string>##</dia:string> + <dia:string># Is a metadata table specific to employees #</dia:string> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> @@ -4523,11 +5550,34 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> + <dia:string>#serial#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># entity_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -4566,14 +5616,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># name#</dia:string> + <dia:string># startdate#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(64)#</dia:string> + <dia:string>#date#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string/> + <dia:string>#('now'::text)::date#</dia:string> </dia:attribute> <dia:attribute name="visibility"> @@ -4589,10 +5639,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># address1#</dia:string> + <dia:string># enddate#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#date#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4612,10 +5662,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># address2#</dia:string> + <dia:string># notes#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4635,10 +5685,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># city#</dia:string> + <dia:string># role#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#character varying(20)#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4658,14 +5708,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># state#</dia:string> + <dia:string># sales#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#boolean#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string/> + <dia:string>#false#</dia:string> </dia:attribute> <dia:attribute name="visibility"> @@ -4681,10 +5731,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># zipcode#</dia:string> + <dia:string># ssn#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(10)#</dia:string> + <dia:string>#character varying(20)#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4704,10 +5754,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># country#</dia:string> + <dia:string># iban#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#character varying(34)#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4727,10 +5777,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># workphone#</dia:string> + <dia:string># bic#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#character varying(11)#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4750,10 +5800,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># homephone#</dia:string> + <dia:string># managerid#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4773,14 +5823,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># startdate#</dia:string> + <dia:string># employeenumber#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#date#</dia:string> + <dia:string>#character varying(32)#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#('now'::text)::date#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -4796,7 +5846,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># enddate#</dia:string> + <dia:string># dob#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#date#</dia:string> @@ -4817,12 +5867,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O22"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># The primary entity table to map to ... acts #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># notes#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4842,10 +5996,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># role#</dia:string> + <dia:string># name#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4865,14 +6019,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># sales#</dia:string> + <dia:string># entity_class#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#boolean#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#false#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -4886,12 +6040,149 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#entity_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((name ~ '[[:alnum:]_]'::text))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O23"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity_class#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># Defines the class type such as ven ... oyee #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># email#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4911,10 +6202,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># ssn#</dia:string> + <dia:string># class#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4934,14 +6225,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># iban#</dia:string> + <dia:string># active#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(34)#</dia:string> + <dia:string>#boolean#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string/> + <dia:string>#true#</dia:string> </dia:attribute> <dia:attribute name="visibility"> @@ -4955,12 +6246,149 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#entity_class_class_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK (("class" ~ '[[:alnum:]_ ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O24"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity_class_to_entity#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># Relation builder for classes to entity #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># bic#</dia:string> + <dia:string># entity_class_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(11)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4980,7 +6408,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># managerid#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -5001,12 +6429,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O25"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity_other_name#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># Similar to company_other_name, a p ... son. #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employeenumber#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -5026,10 +6558,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># dob#</dia:string> + <dia:string># other_name#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#date#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -5050,9 +6582,42 @@ </dia:attribute> <dia:attribute name="visible_operations"> - <dia:boolean val="false"/> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#entity_other_name_other_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((other_name ~ '[[:alnum ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + </dia:attribute> - <dia:attribute name="operations"/> <dia:attribute name="template"> <dia:boolean val="false"/> @@ -5060,7 +6625,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O16"> + <dia:object type="UML - Class" version="0" id="O26"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -5256,7 +6821,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O17"> + <dia:object type="UML - Class" version="0" id="O27"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -5406,7 +6971,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O18"> + <dia:object type="UML - Class" version="0" id="O28"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -5502,11 +7067,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -5591,7 +7156,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -5671,7 +7236,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O19"> + <dia:object type="UML - Class" version="0" id="O29"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -5902,7 +7467,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -5959,7 +7524,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O20"> + <dia:object type="UML - Class" version="0" id="O30"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -6055,11 +7620,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('invoicei ... lass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -6408,7 +7973,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O21"> + <dia:object type="UML - Class" version="0" id="O31"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -6504,11 +8069,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('jcitemsi ... lass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -6754,7 +8319,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -6811,7 +8376,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O22"> + <dia:object type="UML - Class" version="0" id="O32"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -6961,7 +8526,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O23"> + <dia:object type="UML - Class" version="0" id="O33"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -6978,7 +8543,7 @@ <dia:real val="6.6000000000000005"/> </dia:attribute> <dia:attribute name="name"> - <dia:string>#makemodel#</dia:string> + <dia:string>#location#</dia:string> </dia:attribute> <dia:attribute name="comment"> @@ -7054,10 +8619,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># parts_id#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -7077,7 +8642,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># make#</dia:string> + <dia:string># line_one#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -7100,7 +8665,99 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># model#</dia:string> + <dia:string># line_two#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># line_three#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># city_province#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># country_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># mail_code#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -7124,9 +8781,104 @@ </dia:attribute> <dia:attribute name="visible_operations"> - <dia:boolean val="false"/> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#location_city_province_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((city_province ~ '[[:al ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#location_line_one_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((line_one ~ '[[:alnum:] ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#location_mail_code_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((mail_code ~ '[[:alnum: ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + </dia:attribute> - <dia:attribute name="operations"/> <dia:attribute name="template"> <dia:boolean val="false"/> @@ -7134,7 +8886,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O24"> + <dia:object type="UML - Class" version="0" id="O34"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -7151,7 +8903,7 @@ <dia:real val="6.6000000000000005"/> </dia:attribute> <dia:attribute name="name"> - <dia:string>#oe#</dia:string> + <dia:string>#makemodel#</dia:string> </dia:attribute> <dia:attribute name="comment"> @@ -7227,14 +8979,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># id#</dia:string> + <dia:string># parts_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -7250,7 +9002,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># ordnumber#</dia:string> + <dia:string># make#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -7273,14 +9025,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># transdate#</dia:string> + <dia:string># model#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#date#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#('now'::text)::date#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -7294,12 +9046,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O35"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#oe#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># vendor_id#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -7319,7 +9175,53 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># customer_id#</dia:string> + <dia:string># ordnumber#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># transdate#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#date#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string>#('now'::text)::date#</dia:string> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -7503,7 +9405,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -7731,6 +9633,29 @@ </dia:attribute> </dia:composite> + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># oe_class_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + </dia:attribute> <dia:attribute name="visible_operations"> @@ -7744,7 +9669,190 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O25"> + <dia:object type="UML - Class" version="0" id="O36"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#oe_class#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># This could probably be done better ... tion #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#smallint#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># oe_class#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#oe_class_id_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK (((id = 1) OR (id = 2)))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O37"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -7840,11 +9948,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('orderite ... lass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -8147,7 +10255,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O26"> + <dia:object type="UML - Class" version="0" id="O38"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -8243,11 +10351,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -8872,7 +10980,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O27"> + <dia:object type="UML - Class" version="0" id="O39"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -9183,7 +11291,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O28"> + <dia:object type="UML - Class" version="0" id="O40"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -9279,11 +11387,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -9333,7 +11441,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O29"> + <dia:object type="UML - Class" version="0" id="O41"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -9506,7 +11614,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O30"> + <dia:object type="UML - Class" version="0" id="O42"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -9599,7 +11707,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># vendor_id#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -9771,7 +11879,921 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O31"> + <dia:object type="UML - Class" version="0" id="O43"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># Every person, must have an entity ... _id. #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#serial#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># entity_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># salutation_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># first_name#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># middle_name#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># last_name#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># primary_location_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#person_first_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((first_name ~ '[[:alnum ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#person_last_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((last_name ~ '[[:alnum: ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O44"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_company#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># location_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># person_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O45"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_contact#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># To keep track of the relationship ... dual #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># person_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># contact_class_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># contact#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#person_to_contact_contact_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((contact ~ '[[:alnum:]_ ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O46"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_entity#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># person_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># entity_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># related_how#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># created#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#date#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string>#('now'::text)::date#</dia:string> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#person_to_entity_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((entity_id <> person_id))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O47"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -9867,11 +12889,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -9921,7 +12943,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O32"> + <dia:object type="UML - Class" version="0" id="O48"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -10017,11 +13039,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -10232,7 +13254,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O33"> + <dia:object type="UML - Class" version="0" id="O49"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -10543,7 +13565,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O34"> + <dia:object type="UML - Class" version="0" id="O50"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -10739,7 +13761,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O35"> + <dia:object type="UML - Class" version="0" id="O51"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -10935,7 +13957,157 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O36"> + <dia:object type="UML - Class" version="0" id="O52"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#salutation#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#serial#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># salutation#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O53"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -11338,7 +14510,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O37"> + <dia:object type="UML - Class" version="0" id="O54"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -11511,7 +14683,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O38"> + <dia:object type="UML - Class" version="0" id="O55"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -11730,7 +14902,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O39"> + <dia:object type="UML - Class" version="0" id="O56"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -11972,7 +15144,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O40"> + <dia:object type="UML - Class" version="0" id="O57"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -12145,7 +15317,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O41"> + <dia:object type="UML - Class" version="0" id="O58"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -12295,7 +15467,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O42"> + <dia:object type="UML - Class" version="0" id="O59"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -12445,7 +15617,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O43"> + <dia:object type="UML - Class" version="0" id="O60"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -12618,7 +15790,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O44"> + <dia:object type="UML - Class" version="0" id="O61"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -12639,7 +15811,7 @@ </dia:attribute> <dia:attribute name="comment"> - <dia:string>##</dia:string> + <dia:string># Now a meta data table #</dia:string> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> @@ -12714,260 +15886,7 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string>#nextval('id'::regclass)#</dia:string> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># name#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(64)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># address1#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># address2#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># city#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># state#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># zipcode#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(10)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># country#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># contact#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(64)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># phone#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># fax#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># email#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -12987,10 +15906,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># notes#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -13309,29 +16228,6 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#integer#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> <dia:string># language_code#</dia:string> </dia:attribute> <dia:attribute name="type"> @@ -13458,7 +16354,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O45"> + <dia:object type="UML - Class" version="0" id="O62"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -13608,7 +16504,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O46"> + <dia:object type="UML - Class" version="0" id="O63"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -13704,11 +16600,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -13758,7 +16654,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O47"> + <dia:object type="UML - Class" version="0" id="O64"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -13911,7 +16807,7 @@ - <dia:object type="UML - Constraint" version="0" id="O48"> + <dia:object type="UML - Constraint" version="0" id="O65"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -13937,7 +16833,7 @@ </dia:connections> </dia:object> - <dia:object type="UML - Constraint" version="0" id="O49"> + <dia:object type="UML - Constraint" version="0" id="O66"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -13949,7 +16845,137 @@ <dia:point val="25.05,2.7"/> </dia:attribute> <dia:attribute name="constraint"> - <dia:string>#custom_field_catalog_table_id_fkey#</dia:string> + <dia:string>#ap_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O2" connection="14"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O67"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#ap_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O2" connection="36"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O68"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#ar_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O3" connection="14"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O69"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#ar_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O3" connection="40"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O70"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#audittrail_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O5" connection="20"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O71"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#company_entity_id_fkey#</dia:string> </dia:attribute> <dia:attribute name="text_pos"> <dia:point val="12.525,3.1"/> @@ -13959,11 +16985,583 @@ </dia:attribute> <dia:connections> <dia:connection handle="0" to="O8" connection="10"/> - <dia:connection handle="1" to="O9" connection="9"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O72"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#company_entity_class_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O8" connection="14"/> + <dia:connection handle="1" to="O23" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O73"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#company_primary_location_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O8" connection="16"/> + <dia:connection handle="1" to="O33" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O74"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#company_to_contact_company_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O9" connection="8"/> + <dia:connection handle="1" to="O8" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O75"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#company_to_contact_contact_class_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O9" connection="10"/> + <dia:connection handle="1" to="O12" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O76"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#company_to_entity_company_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O10" connection="8"/> + <dia:connection handle="1" to="O8" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O77"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#company_to_entity_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O10" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O78"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#company_to_location_location_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O11" connection="8"/> + <dia:connection handle="1" to="O33" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O79"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#company_to_location_company_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O11" connection="10"/> + <dia:connection handle="1" to="O8" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O80"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#custom_field_catalog_table_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O14" connection="10"/> + <dia:connection handle="1" to="O15" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O81"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#customer_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O16" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O82"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#employee_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O21" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O83"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#entity_entity_class_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O22" connection="12"/> + <dia:connection handle="1" to="O23" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O84"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#entity_class_to_entity_entity_class_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O24" connection="8"/> + <dia:connection handle="1" to="O23" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O85"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#entity_class_to_entity_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O24" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O86"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#entity_other_name_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O25" connection="8"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O87"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#gl_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O28" connection="16"/> + <dia:connection handle="1" to="O43" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Constraint" version="0" id="O50"> + <dia:object type="UML - Constraint" version="0" id="O88"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#inventory_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O29" connection="20"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O89"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#jcitems_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O31" connection="30"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O90"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#location_country_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O33" connection="18"/> + <dia:connection handle="1" to="O13" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O91"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#oe_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O35" connection="14"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O92"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#oe_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O35" connection="30"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O93"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#oe_oe_class_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O35" connection="50"/> + <dia:connection handle="1" to="O36" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O94"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -13984,12 +17582,12 @@ <dia:color val="#000000"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O29" connection="8"/> - <dia:connection handle="1" to="O26" connection="9"/> + <dia:connection handle="0" to="O41" connection="8"/> + <dia:connection handle="1" to="O38" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Constraint" version="0" id="O51"> + <dia:object type="UML - Constraint" version="0" id="O95"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -14010,12 +17608,12 @@ <dia:color val="#000000"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O29" connection="10"/> + <dia:connection handle="0" to="O41" connection="10"/> <dia:connection handle="1" to="O7" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Constraint" version="0" id="O52"> + <dia:object type="UML - Constraint" version="0" id="O96"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -14036,12 +17634,272 @@ <dia:color val="#000000"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O29" connection="12"/> - <dia:connection handle="1" to="O40" connection="9"/> + <dia:connection handle="0" to="O41" connection="12"/> + <dia:connection handle="1" to="O57" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O97"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#partsvendor_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O42" connection="8"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O98"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#person_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O43" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O99"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#person_salutation_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O43" connection="12"/> + <dia:connection handle="1" to="O52" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O100"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#person_primary_location_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O43" connection="20"/> + <dia:connection handle="1" to="O33" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O101"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#person_to_company_location_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O44" connection="8"/> + <dia:connection handle="1" to="O33" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Constraint" version="0" id="O53"> + <dia:object type="UML - Constraint" version="0" id="O102"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#person_to_company_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O44" connection="10"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O103"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#person_to_contact_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O45" connection="8"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O104"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#person_to_contact_contact_class_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O45" connection="10"/> + <dia:connection handle="1" to="O12" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O105"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#person_to_entity_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O46" connection="8"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O106"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#person_to_entity_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O46" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O107"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -14062,12 +17920,12 @@ <dia:color val="#000000"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O39" connection="8"/> + <dia:connection handle="0" to="O56" connection="8"/> <dia:connection handle="1" to="O7" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Constraint" version="0" id="O54"> + <dia:object type="UML - Constraint" version="0" id="O108"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -14088,12 +17946,12 @@ <dia:color val="#000000"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O39" connection="18"/> - <dia:connection handle="1" to="O41" connection="9"/> + <dia:connection handle="0" to="O56" connection="18"/> + <dia:connection handle="1" to="O58" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Constraint" version="0" id="O55"> + <dia:object type="UML - Constraint" version="0" id="O109"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -14114,8 +17972,34 @@ <dia:color val="#000000"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O40" connection="12"/> - <dia:connection handle="1" to="O41" connection="9"/> + <dia:connection handle="0" to="O57" connection="12"/> + <dia:connection handle="1" to="O58" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Constraint" version="0" id="O110"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="conn_endpoints"> + <dia:point val="0,3.5"/> + <dia:point val="25.05,2.7"/> + </dia:attribute> + <dia:attribute name="constraint"> + <dia:string>#vendor_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="text_pos"> + <dia:point val="12.525,3.1"/> + </dia:attribute> + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O61" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> </dia:connections> </dia:object> diff --git a/doc/database/ledgersmb.dot b/doc/database/ledgersmb.dot index 96c7749e..9913c1c1 100644 --- a/doc/database/ledgersmb.dot +++ b/doc/database/ledgersmb.dot @@ -13,67 +13,99 @@ edge [ "acc_trans" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > chart_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > amount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > transdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > source </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > cleared </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > fx_transaction </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > project_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > memo </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > invoice_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > entry_id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> </TABLE>> ]; -"ap" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > invnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > transdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > vendor_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > taxincluded </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > amount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > netamount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > paid </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > datepaid </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > duedate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > invoice </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > ordnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > employee_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > till </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > quonumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > intnotes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > department_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > shipvia </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> <TR><TD PORT="ltcol21" ></TD><TD align="left" > language_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol21"> </TD></TR> <TR><TD PORT="ltcol22" ></TD><TD align="left" > ponumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol22"> </TD></TR> <TR><TD PORT="ltcol23" ></TD><TD align="left" > shippingpoint </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol23"> </TD></TR> <TR><TD PORT="ltcol24" ></TD><TD align="left" > terms </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol24"> </TD></TR> </TABLE>> ]; +"ap" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > invnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > transdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > taxincluded </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > amount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > netamount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > paid </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > datepaid </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > duedate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > invoice </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > ordnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > person_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > till </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > quonumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > intnotes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > department_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > shipvia </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> <TR><TD PORT="ltcol21" ></TD><TD align="left" > language_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol21"> </TD></TR> <TR><TD PORT="ltcol22" ></TD><TD align="left" > ponumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol22"> </TD></TR> <TR><TD PORT="ltcol23" ></TD><TD align="left" > shippingpoint </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol23"> </TD></TR> <TR><TD PORT="ltcol24" ></TD><TD align="left" > terms </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol24"> </TD></TR> </TABLE>> ]; -"ar" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > invnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > transdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > customer_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > taxincluded </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > amount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > netamount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > paid </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > datepaid </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > duedate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > invoice </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > shippingpoint </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > terms </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > ordnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > employee_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > till </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > quonumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > intnotes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> <TR><TD PORT="ltcol21" ></TD><TD align="left" > department_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol21"> </TD></TR> <TR><TD PORT="ltcol22" ></TD><TD align="left" > shipvia </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol22"> </TD></TR> <TR><TD PORT="ltcol23" ></TD><TD align="left" > language_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol23"> </TD></TR> <TR><TD PORT="ltcol24" ></TD><TD align="left" > ponumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol24"> </TD></TR> </TABLE>> ]; +"ar" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > invnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > transdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > taxincluded </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > amount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > netamount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > paid </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > datepaid </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > duedate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > invoice </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > shippingpoint </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > terms </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > ordnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > person_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > till </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > quonumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > intnotes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> <TR><TD PORT="ltcol21" ></TD><TD align="left" > department_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol21"> </TD></TR> <TR><TD PORT="ltcol22" ></TD><TD align="left" > shipvia </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol22"> </TD></TR> <TR><TD PORT="ltcol23" ></TD><TD align="left" > language_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol23"> </TD></TR> <TR><TD PORT="ltcol24" ></TD><TD align="left" > ponumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol24"> </TD></TR> </TABLE>> ]; "assembly" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > qty </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > bom </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > adj </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> </TABLE>> ]; -"audittrail" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > tablename </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > reference </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > formname </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > action </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > transdate </TD><TD align="left" > timestamp without time zone </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > employee_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > entry_id </TD><TD align="left" > bigserial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> </TABLE>> ]; +"audittrail" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > tablename </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > reference </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > formname </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > action </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > transdate </TD><TD align="left" > timestamp without time zone </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > person_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > entry_id </TD><TD align="left" > bigserial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> </TABLE>> ]; -"business" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > discount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; +"business" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > discount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; -"chart" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > accno </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > charttype </TD><TD align="left" > character(1) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > category </TD><TD align="left" > character(1) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > link </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > gifi_accno </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > contra </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> </TABLE>> ]; +"chart" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > accno </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > charttype </TD><TD align="left" > character(1) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > category </TD><TD align="left" > character(1) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > link </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > gifi_accno </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > contra </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> </TABLE>> ]; + +"company" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > legal_name </TD><TD align="left" > text </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > entity_class_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > primary_location_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > tax_id </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> </TABLE>> ]; + +"company_to_contact" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > company_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > contact_class_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > contact </TD><TD align="left" > text </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; + +"company_to_entity" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > company_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > related_how </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > created </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> </TABLE>> ]; + +"company_to_location" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > location_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > company_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; + +"contact_class" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > class </TD><TD align="left" > text </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; + +"country" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > name </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > short_name </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > itu </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> </TABLE>> ]; "custom_field_catalog" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > field_id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > table_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > field_name </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; "custom_table_catalog" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > table_id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > extends </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > table_name </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; -"customer" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > name </TD><TD align="left" > character varying(64) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > address1 </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > address2 </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > city </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > state </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > zipcode </TD><TD align="left" > character varying(10) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > country </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > contact </TD><TD align="left" > character varying(64) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > phone </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > fax </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > email </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > discount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > taxincluded </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > creditlimit </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > terms </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > customernumber </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > cc </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > bcc </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> <TR><TD PORT="ltcol21" ></TD><TD align="left" > business_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol21"> </TD></TR> <TR><TD PORT="ltcol22" ></TD><TD align="left" > taxnumber </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol22"> </TD></TR> <TR><TD PORT="ltcol23" ></TD><TD align="left" > sic_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol23"> </TD></TR> <TR><TD PORT="ltcol24" ></TD><TD align="left" > iban </TD><TD align="left" > character varying(34) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol24"> </TD></TR> <TR><TD PORT="ltcol25" ></TD><TD align="left" > bic </TD><TD align="left" > character varying(11) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol25"> </TD></TR> <TR><TD PORT="ltcol26" ></TD><TD align="left" > employee_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol26"> </TD></TR> <TR><TD PORT="ltcol27" ></TD><TD align="left" > language_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol27"> </TD></TR> <TR><TD PORT="ltcol28" ></TD><TD align="left" > pricegroup_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol28"> </TD></TR> <TR><TD PORT="ltcol29" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol29"> </TD></TR> <TR><TD PORT="ltcol30" ></TD><TD align="left" > startdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol30"> </TD></TR> <TR><TD PORT="ltcol31" ></TD><TD align="left" > enddate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol31"> </TD></TR> </TABLE>> ]; +"customer" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > discount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > taxincluded </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > creditlimit </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > terms </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > customernumber </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > cc </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > bcc </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > business_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > sic_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > iban </TD><TD align="left" > character varying(34) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > bic </TD><TD align="left" > character varying(11) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > language_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > pricegroup_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > startdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > enddate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > invoice_notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> </TABLE>> ]; "customertax" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > customer_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > chart_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; "defaults" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > setting_key </TD><TD align="left" > text </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > value </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; -"department" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > role </TD><TD align="left" > character(1) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; +"department" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > role </TD><TD align="left" > character(1) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; "dpt_trans" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > department_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; -"employee" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > login </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > name </TD><TD align="left" > character varying(64) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > address1 </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > address2 </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > city </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > state </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > zipcode </TD><TD align="left" > character varying(10) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > country </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > workphone </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > homephone </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > startdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > enddate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > role </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > sales </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > email </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > ssn </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > iban </TD><TD align="left" > character varying(34) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > bic </TD><TD align="left" > character varying(11) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> <TR><TD PORT="ltcol21" ></TD><TD align="left" > managerid </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol21"> </TD></TR> <TR><TD PORT="ltcol22" ></TD><TD align="left" > employeenumber </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol22"> </TD></TR> <TR><TD PORT="ltcol23" ></TD><TD align="left" > dob </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol23"> </TD></TR> </TABLE>> ]; +"employee" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > login </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > startdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > enddate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > role </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > sales </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > ssn </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > iban </TD><TD align="left" > character varying(34) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > bic </TD><TD align="left" > character varying(11) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > managerid </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > employeenumber </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > dob </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> </TABLE>> ]; + +"entity" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > name </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > entity_class </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; + +"entity_class" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > class </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > active </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; + +"entity_class_to_entity" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > entity_class_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; + +"entity_other_name" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > other_name </TD><TD align="left" > text </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; "exchangerate" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > transdate </TD><TD align="left" > date </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > buy </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > sell </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> </TABLE>> ]; "gifi" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > accno </TD><TD align="left" > text </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; -"gl" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > reference </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > transdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > employee_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > department_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> </TABLE>> ]; +"gl" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > reference </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > transdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > person_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > department_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> </TABLE>> ]; -"inventory" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > warehouse_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > orderitems_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > qty </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > shippingdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > employee_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > entry_id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> </TABLE>> ]; +"inventory" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > warehouse_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > orderitems_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > qty </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > shippingdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > person_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > entry_id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> </TABLE>> ]; -"invoice" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > qty </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > allocated </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > sellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > fxsellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > discount </TD><TD align="left" > real </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > assemblyitem </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > unit </TD><TD align="left" > character varying(5) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > project_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > deliverydate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > serialnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> </TABLE>> ]; +"invoice" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > qty </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > allocated </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > sellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > fxsellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > discount </TD><TD align="left" > real </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > assemblyitem </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > unit </TD><TD align="left" > character varying(5) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > project_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > deliverydate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > serialnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> </TABLE>> ]; -"jcitems" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > project_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > qty </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > allocated </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > sellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > fxsellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > serialnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > checkedin </TD><TD align="left" > timestamp with time zone </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > checkedout </TD><TD align="left" > timestamp with time zone </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > employee_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> </TABLE>> ]; +"jcitems" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > project_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > qty </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > allocated </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > sellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > fxsellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > serialnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > checkedin </TD><TD align="left" > timestamp with time zone </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > checkedout </TD><TD align="left" > timestamp with time zone </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > person_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> </TABLE>> ]; "language" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > code </TD><TD align="left" > character varying(6) </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; +"location" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > line_one </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > line_two </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > line_three </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > city_province </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > country_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > mail_code </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> </TABLE>> ]; + "makemodel" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > make </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > model </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; -"oe" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > ordnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > transdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > vendor_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > customer_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > amount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > netamount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > reqdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > taxincluded </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > shippingpoint </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > employee_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > closed </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > quotation </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > quonumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > intnotes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > department_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > shipvia </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > language_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> <TR><TD PORT="ltcol21" ></TD><TD align="left" > ponumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol21"> </TD></TR> <TR><TD PORT="ltcol22" ></TD><TD align="left" > terms </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol22"> </TD></TR> </TABLE>> ]; +"oe" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > ordnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > transdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > amount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > netamount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > reqdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > taxincluded </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > shippingpoint </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > person_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > closed </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > quotation </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > quonumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > intnotes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > department_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > shipvia </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > language_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > ponumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> <TR><TD PORT="ltcol21" ></TD><TD align="left" > terms </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol21"> </TD></TR> <TR><TD PORT="ltcol22" ></TD><TD align="left" > oe_class_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol22"> </TD></TR> </TABLE>> ]; -"orderitems" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > qty </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > sellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > discount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > unit </TD><TD align="left" > character varying(5) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > project_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > reqdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > ship </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > serialnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> </TABLE>> ]; +"oe_class" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > oe_class </TD><TD align="left" > text </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; -"parts" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > partnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > unit </TD><TD align="left" > character varying(5) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > listprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > sellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > lastcost </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > priceupdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > weight </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > onhand </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > makemodel </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > assembly </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > alternate </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > rop </TD><TD align="left" > real </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > inventory_accno_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > income_accno_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > expense_accno_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > bin </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > obsolete </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> <TR><TD PORT="ltcol21" ></TD><TD align="left" > bom </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol21"> </TD></TR> <TR><TD PORT="ltcol22" ></TD><TD align="left" > image </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol22"> </TD></TR> <TR><TD PORT="ltcol23" ></TD><TD align="left" > drawing </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol23"> </TD></TR> <TR><TD PORT="ltcol24" ></TD><TD align="left" > microfiche </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol24"> </TD></TR> <TR><TD PORT="ltcol25" ></TD><TD align="left" > partsgroup_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol25"> </TD></TR> <TR><TD PORT="ltcol26" ></TD><TD align="left" > project_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol26"> </TD></TR> <TR><TD PORT="ltcol27" ></TD><TD align="left" > avgcost </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol27"> </TD></TR> </TABLE>> ]; +"orderitems" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > qty </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > sellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > discount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > unit </TD><TD align="left" > character varying(5) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > project_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > reqdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > ship </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > serialnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> </TABLE>> ]; + +"parts" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > partnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > unit </TD><TD align="left" > character varying(5) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > listprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > sellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > lastcost </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > priceupdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > weight </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > onhand </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > makemodel </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > assembly </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > alternate </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > rop </TD><TD align="left" > real </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > inventory_accno_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > income_accno_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > expense_accno_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > bin </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > obsolete </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> <TR><TD PORT="ltcol21" ></TD><TD align="left" > bom </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol21"> </TD></TR> <TR><TD PORT="ltcol22" ></TD><TD align="left" > image </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol22"> </TD></TR> <TR><TD PORT="ltcol23" ></TD><TD align="left" > drawing </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol23"> </TD></TR> <TR><TD PORT="ltcol24" ></TD><TD align="left" > microfiche </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol24"> </TD></TR> <TR><TD PORT="ltcol25" ></TD><TD align="left" > partsgroup_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol25"> </TD></TR> <TR><TD PORT="ltcol26" ></TD><TD align="left" > project_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol26"> </TD></TR> <TR><TD PORT="ltcol27" ></TD><TD align="left" > avgcost </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol27"> </TD></TR> </TABLE>> ]; "partscustomer" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > customer_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > pricegroup_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > pricebreak </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > sellprice </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > validfrom </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > validto </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > entry_id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> </TABLE>> ]; -"partsgroup" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > partsgroup </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; +"partsgroup" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > partsgroup </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; "partstax" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > chart_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > taxcategory_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; -"partsvendor" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > vendor_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > partnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > leadtime </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > lastcost </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > entry_id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> </TABLE>> ]; +"partsvendor" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > partnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > leadtime </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > lastcost </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > entry_id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> </TABLE>> ]; + +"person" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > salutation_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > first_name </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > middle_name </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > last_name </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > primary_location_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol7"> </TD></TR> </TABLE>> ]; -"pricegroup" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > pricegroup </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; +"person_to_company" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > location_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > person_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; -"project" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > projectnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > startdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > enddate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > production </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > completed </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > customer_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> </TABLE>> ]; +"person_to_contact" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > person_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > contact_class_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > contact </TD><TD align="left" > text </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; + +"person_to_entity" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > person_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > related_how </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > created </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> </TABLE>> ]; + +"pricegroup" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > pricegroup </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; + +"project" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > projectnumber </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > startdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > enddate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > parts_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > production </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > completed </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > customer_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> </TABLE>> ]; "recurring" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > reference </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > startdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > nextdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > enddate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > repeat </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > unit </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > howmany </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > payment </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> </TABLE>> ]; @@ -81,6 +113,8 @@ edge [ "recurringprint" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > formname </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > format </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > printer </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> </TABLE>> ]; +"salutation" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > salutation </TD><TD align="left" > text </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; + "shipto" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > shiptoname </TD><TD align="left" > character varying(64) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > shiptoaddress1 </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > shiptoaddress2 </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > shiptocity </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > shiptostate </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > shiptozipcode </TD><TD align="left" > character varying(10) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > shiptocountry </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > shiptocontact </TD><TD align="left" > character varying(64) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > shiptophone </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > shiptofax </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > shiptoemail </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > entry_id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> </TABLE>> ]; "sic" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > code </TD><TD align="left" > character varying(6) </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > sictype </TD><TD align="left" > character(1) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; @@ -97,22 +131,60 @@ edge [ "translation" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > language_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> </TABLE>> ]; -"vendor" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > name </TD><TD align="left" > character varying(64) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > address1 </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > address2 </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > city </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > state </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > zipcode </TD><TD align="left" > character varying(10) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > country </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > contact </TD><TD align="left" > character varying(64) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > phone </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > fax </TD><TD align="left" > character varying(20) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > email </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > notes </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > terms </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > taxincluded </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > vendornumber </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > cc </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > bcc </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > gifi_accno </TD><TD align="left" > character varying(30) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > business_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> <TR><TD PORT="ltcol21" ></TD><TD align="left" > taxnumber </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol21"> </TD></TR> <TR><TD PORT="ltcol22" ></TD><TD align="left" > sic_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol22"> </TD></TR> <TR><TD PORT="ltcol23" ></TD><TD align="left" > discount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol23"> </TD></TR> <TR><TD PORT="ltcol24" ></TD><TD align="left" > creditlimit </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol24"> </TD></TR> <TR><TD PORT="ltcol25" ></TD><TD align="left" > iban </TD><TD align="left" > character varying(34) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol25"> </TD></TR> <TR><TD PORT="ltcol26" ></TD><TD align="left" > bic </TD><TD align="left" > character varying(11) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol26"> </TD></TR> <TR><TD PORT="ltcol27" ></TD><TD align="left" > employee_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol27"> </TD></TR> <TR><TD PORT="ltcol28" ></TD><TD align="left" > language_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol28"> </TD></TR> <TR><TD PORT="ltcol29" ></TD><TD align="left" > pricegroup_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol29"> </TD></TR> <TR><TD PORT="ltcol30" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol30"> </TD></TR> <TR><TD PORT="ltcol31" ></TD><TD align="left" > startdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol31"> </TD></TR> <TR><TD PORT="ltcol32" ></TD><TD align="left" > enddate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol32"> </TD></TR> </TABLE>> ]; +"vendor" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > entity_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > FK </TD><TD align="left" PORT="rtcol2"> </TD></TR> <TR><TD PORT="ltcol3" ></TD><TD align="left" > terms </TD><TD align="left" > smallint </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol3"> </TD></TR> <TR><TD PORT="ltcol4" ></TD><TD align="left" > taxincluded </TD><TD align="left" > boolean </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol4"> </TD></TR> <TR><TD PORT="ltcol5" ></TD><TD align="left" > vendornumber </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol5"> </TD></TR> <TR><TD PORT="ltcol6" ></TD><TD align="left" > cc </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol6"> </TD></TR> <TR><TD PORT="ltcol7" ></TD><TD align="left" > bcc </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol7"> </TD></TR> <TR><TD PORT="ltcol8" ></TD><TD align="left" > gifi_accno </TD><TD align="left" > character varying(30) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol8"> </TD></TR> <TR><TD PORT="ltcol9" ></TD><TD align="left" > business_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol9"> </TD></TR> <TR><TD PORT="ltcol10" ></TD><TD align="left" > taxnumber </TD><TD align="left" > character varying(32) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol10"> </TD></TR> <TR><TD PORT="ltcol11" ></TD><TD align="left" > sic_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol11"> </TD></TR> <TR><TD PORT="ltcol12" ></TD><TD align="left" > discount </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol12"> </TD></TR> <TR><TD PORT="ltcol13" ></TD><TD align="left" > creditlimit </TD><TD align="left" > numeric </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol13"> </TD></TR> <TR><TD PORT="ltcol14" ></TD><TD align="left" > iban </TD><TD align="left" > character varying(34) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol14"> </TD></TR> <TR><TD PORT="ltcol15" ></TD><TD align="left" > bic </TD><TD align="left" > character varying(11) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol15"> </TD></TR> <TR><TD PORT="ltcol16" ></TD><TD align="left" > language_code </TD><TD align="left" > character varying(6) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol16"> </TD></TR> <TR><TD PORT="ltcol17" ></TD><TD align="left" > pricegroup_id </TD><TD align="left" > integer </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol17"> </TD></TR> <TR><TD PORT="ltcol18" ></TD><TD align="left" > curr </TD><TD align="left" > character(3) </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol18"> </TD></TR> <TR><TD PORT="ltcol19" ></TD><TD align="left" > startdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol19"> </TD></TR> <TR><TD PORT="ltcol20" ></TD><TD align="left" > enddate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol20"> </TD></TR> </TABLE>> ]; "vendortax" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > vendor_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > chart_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; -"warehouse" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; +"warehouse" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > id </TD><TD align="left" > serial </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > description </TD><TD align="left" > text </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; "yearend" [shape = plaintext, label = < <TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0"> <TR ><TD PORT="ltcol0"> </TD> <TD bgcolor="grey90" border="1" COLSPAN="4"> \N </TD> <TD PORT="rtcol0"></TD></TR> <TR><TD PORT="ltcol1" ></TD><TD align="left" > trans_id </TD><TD align="left" > integer </TD><TD align="left" > PK </TD><TD align="left" > </TD><TD align="left" PORT="rtcol1"> </TD></TR> <TR><TD PORT="ltcol2" ></TD><TD align="left" > transdate </TD><TD align="left" > date </TD><TD align="left" > </TD><TD align="left" > </TD><TD align="left" PORT="rtcol2"> </TD></TR> </TABLE>> ]; "acc_trans":rtcol2 -> "chart":ltcol1 [label="acc_trans_chart_id_fkey"]; +"ap":rtcol4 -> "entity":ltcol1 [label="ap_entity_id_fkey"]; +"ap":rtcol15 -> "person":ltcol1 [label="ap_person_id_fkey"]; +"ar":rtcol4 -> "entity":ltcol1 [label="ar_entity_id_fkey"]; +"ar":rtcol17 -> "person":ltcol1 [label="ar_person_id_fkey"]; +"audittrail":rtcol7 -> "person":ltcol1 [label="audittrail_person_id_fkey"]; +"company":rtcol2 -> "entity":ltcol1 [label="company_entity_id_fkey"]; +"company":rtcol4 -> "entity_class":ltcol1 [label="company_entity_class_id_fkey"]; +"company":rtcol5 -> "location":ltcol1 [label="company_primary_location_id_fkey"]; +"company_to_contact":rtcol1 -> "company":ltcol1 [label="company_to_contact_company_id_fkey"]; +"company_to_contact":rtcol2 -> "contact_class":ltcol1 [label="company_to_contact_contact_class_id_fkey"]; +"company_to_entity":rtcol1 -> "company":ltcol1 [label="company_to_entity_company_id_fkey"]; +"company_to_entity":rtcol2 -> "entity":ltcol1 [label="company_to_entity_entity_id_fkey"]; +"company_to_location":rtcol1 -> "location":ltcol1 [label="company_to_location_location_id_fkey"]; +"company_to_location":rtcol2 -> "company":ltcol1 [label="company_to_location_company_id_fkey"]; "custom_field_catalog":rtcol2 -> "custom_table_catalog":ltcol1 [label="custom_field_catalog_table_id_fkey"]; +"customer":rtcol2 -> "entity":ltcol1 [label="customer_entity_id_fkey"]; +"employee":rtcol2 -> "entity":ltcol1 [label="employee_entity_id_fkey"]; +"entity":rtcol3 -> "entity_class":ltcol1 [label="entity_entity_class_fkey"]; +"entity_class_to_entity":rtcol1 -> "entity_class":ltcol1 [label="entity_class_to_entity_entity_class_id_fkey"]; +"entity_class_to_entity":rtcol2 -> "entity":ltcol1 [label="entity_class_to_entity_entity_id_fkey"]; +"entity_other_name":rtcol1 -> "entity":ltcol1 [label="entity_other_name_entity_id_fkey"]; +"gl":rtcol5 -> "person":ltcol1 [label="gl_person_id_fkey"]; +"inventory":rtcol7 -> "person":ltcol1 [label="inventory_person_id_fkey"]; +"jcitems":rtcol12 -> "person":ltcol1 [label="jcitems_person_id_fkey"]; +"location":rtcol6 -> "country":ltcol1 [label="location_country_id_fkey"]; +"oe":rtcol4 -> "entity":ltcol1 [label="oe_entity_id_fkey"]; +"oe":rtcol12 -> "person":ltcol1 [label="oe_person_id_fkey"]; +"oe":rtcol22 -> "oe_class":ltcol1 [label="oe_oe_class_id_fkey"]; "partstax":rtcol1 -> "parts":ltcol1 [label="partstax_parts_id_fkey"]; "partstax":rtcol2 -> "chart":ltcol1 [label="partstax_chart_id_fkey"]; "partstax":rtcol3 -> "taxcategory":ltcol1 [label="partstax_taxcategory_id_fkey"]; +"partsvendor":rtcol1 -> "entity":ltcol1 [label="partsvendor_entity_id_fkey"]; +"person":rtcol2 -> "entity":ltcol1 [label="person_entity_id_fkey"]; +"person":rtcol3 -> "salutation":ltcol1 [label="person_salutation_id_fkey"]; +"person":rtcol7 -> "location":ltcol1 [label="person_primary_location_id_fkey"]; +"person_to_company":rtcol1 -> "location":ltcol1 [label="person_to_company_location_id_fkey"]; +"person_to_company":rtcol2 -> "person":ltcol1 [label="person_to_company_person_id_fkey"]; +"person_to_contact":rtcol1 -> "person":ltcol1 [label="person_to_contact_person_id_fkey"]; +"person_to_contact":rtcol2 -> "contact_class":ltcol1 [label="person_to_contact_contact_class_id_fkey"]; +"person_to_entity":rtcol1 -> "person":ltcol1 [label="person_to_entity_person_id_fkey"]; +"person_to_entity":rtcol2 -> "entity":ltcol1 [label="person_to_entity_entity_id_fkey"]; "tax":rtcol1 -> "chart":ltcol1 [label="tax_chart_id_fkey"]; "tax":rtcol6 -> "taxmodule":ltcol1 [label="tax_taxmodule_id_fkey"]; "taxcategory":rtcol3 -> "taxmodule":ltcol1 [label="taxcategory_taxmodule_id_fkey"]; +"vendor":rtcol2 -> "entity":ltcol1 [label="vendor_entity_id_fkey"]; } diff --git a/doc/database/ledgersmb.html b/doc/database/ledgersmb.html index 1011d507..078a1434 100644 --- a/doc/database/ledgersmb.html +++ b/doc/database/ledgersmb.html @@ -4,7 +4,7 @@ <html> <head> - <title>Index for ledgersmb</title> + <title>Index for lsmb13-new</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style type="text/css"> BODY { @@ -112,12 +112,12 @@ <body> <!-- Primary Index --> - <p><br><br>Dumped on 2007-03-22</p> -<h1><a name="index">Index of database - ledgersmb</a></h1> + <p><br><br>Dumped on 2007-06-13</p> +<h1><a name="index">Index of database - lsmb13-new</a></h1> <ul> <li><a name="public.schema">public</a></li><ul> - <li><a href="#public.table.acc-trans">acc_trans</a></li><li><a href="#public.table.ap">ap</a></li><li><a href="#public.table.ar">ar</a></li><li><a href="#public.table.assembly">assembly</a></li><li><a href="#public.table.audittrail">audittrail</a></li><li><a href="#public.table.business">business</a></li><li><a href="#public.table.chart">chart</a></li><li><a href="#public.table.custom-field-catalog">custom_field_catalog</a></li><li><a href="#public.table.custom-table-catalog">custom_table_catalog</a></li><li><a href="#public.table.customer">customer</a></li><li><a href="#public.table.customertax">customertax</a></li><li><a href="#public.table.defaults">defaults</a></li><li><a href="#public.table.department">department</a></li><li><a href="#public.table.dpt-trans">dpt_trans</a></li><li><a href="#public.table.employee">employee</a></li><li><a href="#public.table.exchangerate">exchangerate</a></li><li><a href="#public.table.gifi">gifi</a></li><li><a href="#public.table.gl">gl</a></li><li><a href="#public.table.inventory">inventory</a></li><li><a href="#public.table.invoice">invoice</a></li><li><a href="#public.table.jcitems">jcitems</a></li><li><a href="#public.table.language">language</a></li><li><a href="#public.table.makemodel">makemodel</a></li><li><a href="#public.table.oe">oe</a></li><li><a href="#public.table.orderitems">orderitems</a></li><li><a href="#public.table.parts">parts</a></li><li><a href="#public.table.partscustomer">partscustomer</a></li><li><a href="#public.table.partsgroup">partsgroup</a></li><li><a href="#public.table.partstax">partstax</a></li><li><a href="#public.table.partsvendor">partsvendor</a></li><li><a href="#public.table.pricegroup">pricegroup</a></li><li><a href="#public.table.project">project</a></li><li><a href="#public.table.recurring">recurring</a></li><li><a href="#public.table.recurringemail">recurringemail</a></li><li><a href="#public.table.recurringprint">recurringprint</a></li><li><a href="#public.table.shipto">shipto</a></li><li><a href="#public.table.sic">sic</a></li><li><a href="#public.table.status">status</a></li><li><a href="#public.table.tax">tax</a></li><li><a href="#public.table.taxcategory">taxcategory</a></li><li><a href="#public.table.taxmodule">taxmodule</a></li><li><a href="#public.table.transactions">transactions</a></li><li><a href="#public.table.translation">translation</a></li><li><a href="#public.table.vendor">vendor</a></li><li><a href="#public.table.vendortax">vendortax</a></li><li><a href="#public.table.warehouse">warehouse</a></li><li><a href="#public.table.yearend">yearend</a></li> + <li><a href="#public.table.acc-trans">acc_trans</a></li><li><a href="#public.table.ap">ap</a></li><li><a href="#public.table.ar">ar</a></li><li><a href="#public.table.assembly">assembly</a></li><li><a href="#public.table.audittrail">audittrail</a></li><li><a href="#public.table.business">business</a></li><li><a href="#public.table.chart">chart</a></li><li><a href="#public.table.company">company</a></li><li><a href="#public.table.company-to-contact">company_to_contact</a></li><li><a href="#public.table.company-to-entity">company_to_entity</a></li><li><a href="#public.table.company-to-location">company_to_location</a></li><li><a href="#public.table.contact-class">contact_class</a></li><li><a href="#public.table.country">country</a></li><li><a href="#public.table.custom-field-catalog">custom_field_catalog</a></li><li><a href="#public.table.custom-table-catalog">custom_table_catalog</a></li><li><a href="#public.table.customer">customer</a></li><li><a href="#public.table.customertax">customertax</a></li><li><a href="#public.table.defaults">defaults</a></li><li><a href="#public.table.department">department</a></li><li><a href="#public.table.dpt-trans">dpt_trans</a></li><li><a href="#public.table.employee">employee</a></li><li><a href="#public.table.entity">entity</a></li><li><a href="#public.table.entity-class">entity_class</a></li><li><a href="#public.table.entity-class-to-entity">entity_class_to_entity</a></li><li><a href="#public.table.entity-other-name">entity_other_name</a></li><li><a href="#public.table.exchangerate">exchangerate</a></li><li><a href="#public.table.gifi">gifi</a></li><li><a href="#public.table.gl">gl</a></li><li><a href="#public.table.inventory">inventory</a></li><li><a href="#public.table.invoice">invoice</a></li><li><a href="#public.table.jcitems">jcitems</a></li><li><a href="#public.table.language">language</a></li><li><a href="#public.table.location">location</a></li><li><a href="#public.table.makemodel">makemodel</a></li><li><a href="#public.table.oe">oe</a></li><li><a href="#public.table.oe-class">oe_class</a></li><li><a href="#public.table.orderitems">orderitems</a></li><li><a href="#public.table.parts">parts</a></li><li><a href="#public.table.partscustomer">partscustomer</a></li><li><a href="#public.table.partsgroup">partsgroup</a></li><li><a href="#public.table.partstax">partstax</a></li><li><a href="#public.table.partsvendor">partsvendor</a></li><li><a href="#public.table.person">person</a></li><li><a href="#public.table.person-to-company">person_to_company</a></li><li><a href="#public.table.person-to-contact">person_to_contact</a></li><li><a href="#public.table.person-to-entity">person_to_entity</a></li><li><a href="#public.table.pricegroup">pricegroup</a></li><li><a href="#public.table.project">project</a></li><li><a href="#public.table.recurring">recurring</a></li><li><a href="#public.table.recurringemail">recurringemail</a></li><li><a href="#public.table.recurringprint">recurringprint</a></li><li><a href="#public.table.salutation">salutation</a></li><li><a href="#public.table.shipto">shipto</a></li><li><a href="#public.table.sic">sic</a></li><li><a href="#public.table.status">status</a></li><li><a href="#public.table.tax">tax</a></li><li><a href="#public.table.taxcategory">taxcategory</a></li><li><a href="#public.table.taxmodule">taxmodule</a></li><li><a href="#public.table.transactions">transactions</a></li><li><a href="#public.table.translation">translation</a></li><li><a href="#public.table.vendor">vendor</a></li><li><a href="#public.table.vendortax">vendortax</a></li><li><a href="#public.table.warehouse">warehouse</a></li><li><a href="#public.table.yearend">yearend</a></li> <li><a href="#public.function.add-custom-field-character-varying-character-varying-character-varying">add_custom_field( character varying, character varying, character varying )</a></li><li><a href="#public.function.avgcost-integer">avgcost( integer )</a></li><li><a href="#public.function.check-department">check_department( )</a></li><li><a href="#public.function.check-inventory">check_inventory( )</a></li><li><a href="#public.function.del-customer">del_customer( )</a></li><li><a href="#public.function.del-department">del_department( )</a></li><li><a href="#public.function.del-exchangerate">del_exchangerate( )</a></li><li><a href="#public.function.del-recurring">del_recurring( )</a></li><li><a href="#public.function.del-vendor">del_vendor( )</a></li><li><a href="#public.function.del-yearend">del_yearend( )</a></li><li><a href="#public.function.drop-custom-field-character-varying-character-varying">drop_custom_field( character varying, character varying )</a></li><li><a href="#public.function.lastcost-integer">lastcost( integer )</a></li><li><a href="#public.function.trigger-parts-short">trigger_parts_short( )</a></li><li><a href="#public.function.update-user-integer-text">update_user( integer, text )</a></li> </ul> @@ -395,7 +395,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -405,7 +405,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -446,16 +446,24 @@ <tr class="tr1"> <td> + + <a href="#public.table.entity">entity.id</a> + + </td> - <td>vendor_id</td> + <td>entity_id</td> <td>integer</td> <td><i> + + + + </i> - + <br><br> Used to be customer_id, but customer is now metadata. You need to push to entity </td> </tr> @@ -622,13 +630,21 @@ <tr class="tr0"> <td> + + <a href="#public.table.person">person.id</a> + + </td> - <td>employee_id</td> + <td>person_id</td> <td>integer</td> <td><i> + + + + NOT NULL </i> @@ -796,8 +812,6 @@ <!-- Indexes --> - ap_employee_id_key employee_id - ap_id_key id ap_invnumber_key invnumber @@ -808,8 +822,6 @@ ap_transdate_key transdate - ap_vendor_id_key vendor_id - <!-- View Definition --> @@ -845,7 +857,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -855,7 +867,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -896,16 +908,24 @@ <tr class="tr1"> <td> + + <a href="#public.table.entity">entity.id</a> + + </td> - <td>customer_id</td> + <td>entity_id</td> <td>integer</td> <td><i> + + + + </i> - + <br><br> Used to be customer_id, but customer is now metadata. You need to push to entity </td> </tr> @@ -1104,13 +1124,21 @@ <tr class="tr0"> <td> + + <a href="#public.table.person">person.id</a> + + </td> - <td>employee_id</td> + <td>person_id</td> <td>integer</td> <td><i> + + + + NOT NULL </i> @@ -1246,10 +1274,6 @@ <!-- Indexes --> - ar_customer_id_key customer_id - - ar_employee_id_key employee_id - ar_id_key id ar_invnumber_key invnumber @@ -1528,13 +1552,21 @@ <tr class="tr0"> <td> + + <a href="#public.table.person">person.id</a> + + </td> - <td>employee_id</td> + <td>person_id</td> <td>integer</td> <td><i> + + + + NOT NULL </i> @@ -1618,7 +1650,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -1628,7 +1660,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -1718,7 +1750,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -1728,7 +1760,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -1900,13 +1932,13 @@ <hr> <h2>Table: - <a name="public.table.custom-field-catalog">custom_field_catalog</a> + <a name="public.table.company">company</a> </h2> <table width="100%" cellspacing="0" cellpadding="3"> - <caption>custom_field_catalog Structure</caption> + <caption>company Structure</caption> <tr> <th>F-Key</th> <th>Name</th> @@ -1920,10 +1952,58 @@ </td> - <td>field_id</td> + <td>id</td> <td>serial</td> <td><i> + + + + UNIQUE + + + + NOT NULL + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + + <a href="#public.table.entity">entity.id</a> + + + </td> + <td>entity_id</td> + <td>integer</td> + <td><i> + + + + + + + NOT NULL + + </i> + + </td> + </tr> + + <tr class="tr0"> + <td> + + + + </td> + <td>legal_name</td> + <td>text</td> + <td><i> + PRIMARY KEY @@ -1941,11 +2021,11 @@ <td> - <a href="#public.table.custom-table-catalog">custom_table_catalog.table_id</a> + <a href="#public.table.entity-class">entity_class.id</a> </td> - <td>table_id</td> + <td>entity_class_id</td> <td>integer</td> <td><i> @@ -1954,7 +2034,7 @@ - + NOT NULL </i> @@ -1964,16 +2044,47 @@ <tr class="tr0"> <td> + + + + <a href="#public.table.location">location.id</a> + + </td> - <td>field_name</td> - <td>text</td> + <td>primary_location_id</td> + <td>integer</td> <td><i> + PRIMARY KEY + + + + + + + + </i> + <br><br> This is the location that should show up by default for any forms + </td> + </tr> + + <tr class="tr1"> + <td> + + </td> + <td>tax_id</td> + <td>text</td> + <td><i> + + + + </i> + <br><br> In the US this would be a EIN. </td> </tr> @@ -1988,9 +2099,39 @@ <!-- Constraint List --> + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>company Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>company_legal_name_check</td> + <td>CHECK ((legal_name ~ '[[:alnum:]_]'::text))</td> + </tr> + + </table> + <!-- Foreign Key Discovery --> + <p>Tables referencing this one via Foreign Key Constraints:</p> + + <ul> + <li><a href="#public.table.company-to-contact">company_to_contact</a></li> + </ul> + + <ul> + <li><a href="#public.table.company-to-entity">company_to_entity</a></li> + </ul> + + <ul> + <li><a href="#public.table.company-to-location">company_to_location</a></li> + </ul> + + <!-- Indexes --> @@ -2008,13 +2149,15 @@ <hr> <h2>Table: - <a name="public.table.custom-table-catalog">custom_table_catalog</a> + <a name="public.table.company-to-contact">company_to_contact</a> </h2> + <p> To keep track of the relationship between multiple contact methods and a single company </p> + <table width="100%" cellspacing="0" cellpadding="3"> - <caption>custom_table_catalog Structure</caption> + <caption>company_to_contact Structure</caption> <tr> <th>F-Key</th> <th>Name</th> @@ -2026,12 +2169,20 @@ <td> + <a href="#public.table.company">company.id</a> + + + </td> - <td>table_id</td> - <td>serial</td> + <td>company_id</td> + <td>integer</td> <td><i> + + + + PRIMARY KEY @@ -2048,11 +2199,26 @@ <tr class="tr1"> <td> + + <a href="#public.table.contact-class">contact_class.id</a> + + + + </td> - <td>extends</td> - <td>text</td> + <td>contact_class_id</td> + <td>integer</td> <td><i> + + + + + PRIMARY KEY + + + + @@ -2064,11 +2230,18 @@ <tr class="tr0"> <td> + + </td> - <td>table_name</td> + <td>contact</td> <td>text</td> <td><i> + PRIMARY KEY + + + + @@ -2088,16 +2261,24 @@ <!-- Constraint List --> + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>company_to_contact Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>company_to_contact_contact_check</td> + <td>CHECK ((contact ~ '[[:alnum:]_]'::text))</td> + </tr> + + </table> + <!-- Foreign Key Discovery --> - <p>Tables referencing this one via Foreign Key Constraints:</p> - - <ul> - <li><a href="#public.table.custom-field-catalog">custom_field_catalog</a></li> - </ul> - - <!-- Indexes --> @@ -2115,13 +2296,13 @@ <hr> <h2>Table: - <a name="public.table.customer">customer</a> + <a name="public.table.company-to-entity">company_to_entity</a> </h2> <table width="100%" cellspacing="0" cellpadding="3"> - <caption>customer Structure</caption> + <caption>company_to_entity Structure</caption> <tr> <th>F-Key</th> <th>Name</th> @@ -2133,12 +2314,20 @@ <td> + <a href="#public.table.company">company.id</a> + + + </td> - <td>id</td> + <td>company_id</td> <td>integer</td> <td><i> + + + + PRIMARY KEY @@ -2146,7 +2335,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -2155,11 +2344,26 @@ <tr class="tr1"> <td> + + <a href="#public.table.entity">entity.id</a> + + + + </td> - <td>name</td> - <td>character varying(64)</td> + <td>entity_id</td> + <td>integer</td> <td><i> + + + + + PRIMARY KEY + + + + @@ -2172,8 +2376,8 @@ <td> </td> - <td>address1</td> - <td>character varying(32)</td> + <td>related_how</td> + <td>text</td> <td><i> @@ -2188,26 +2392,101 @@ <td> </td> - <td>address2</td> - <td>character varying(32)</td> + <td>created</td> + <td>date</td> <td><i> - - + NOT NULL + DEFAULT ('now'::text)::date </i> </td> </tr> + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>company_to_entity Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>company_to_entity_check</td> + <td>CHECK ((entity_id <> company_id))</td> + </tr> + + </table> + + + <!-- Foreign Key Discovery --> + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.company-to-location">company_to_location</a> + </h2> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>company_to_location Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + <tr class="tr0"> <td> + + <a href="#public.table.location">location.id</a> + + + + </td> - <td>city</td> - <td>character varying(32)</td> + <td>location_id</td> + <td>integer</td> <td><i> + + + + + PRIMARY KEY + + + + @@ -2219,11 +2498,26 @@ <tr class="tr1"> <td> + + <a href="#public.table.company">company.id</a> + + + + </td> - <td>state</td> - <td>character varying(32)</td> + <td>company_id</td> + <td>integer</td> <td><i> + + + + + PRIMARY KEY + + + + @@ -2232,16 +2526,69 @@ </td> </tr> + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + + <!-- Foreign Key Discovery --> + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.contact-class">contact_class</a> + </h2> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>contact_class Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + <tr class="tr0"> <td> + + </td> - <td>zipcode</td> - <td>character varying(10)</td> + <td>id</td> + <td>serial</td> <td><i> + + + UNIQUE + + + NOT NULL </i> @@ -2251,11 +2598,18 @@ <tr class="tr1"> <td> + + </td> - <td>country</td> - <td>character varying(32)</td> + <td>class</td> + <td>text</td> <td><i> + PRIMARY KEY + + + + @@ -2264,14 +2618,92 @@ </td> </tr> + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>contact_class Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>contact_class_class_check</td> + <td>CHECK (("class" ~ '[[:alnum:]_]'::text))</td> + </tr> + + </table> + + + <!-- Foreign Key Discovery --> + + <p>Tables referencing this one via Foreign Key Constraints:</p> + + <ul> + <li><a href="#public.table.company-to-contact">company_to_contact</a></li> + </ul> + + <ul> + <li><a href="#public.table.person-to-contact">person_to_contact</a></li> + </ul> + + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.country">country</a> + </h2> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>country Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + <tr class="tr0"> <td> + + </td> - <td>contact</td> - <td>character varying(64)</td> + <td>id</td> + <td>serial</td> <td><i> + PRIMARY KEY + + + + @@ -2284,26 +2716,137 @@ <td> </td> - <td>phone</td> - <td>character varying(20)</td> + <td>name</td> + <td>text</td> <td><i> + NOT NULL + + </i> + + </td> + </tr> + + <tr class="tr0"> + <td> + + </td> + <td>short_name</td> + <td>text</td> + <td><i> + + NOT NULL </i> </td> </tr> + <tr class="tr1"> + <td> + + </td> + <td>itu</td> + <td>text</td> + <td><i> + + + + + </i> + <br><br> The ITU Telecommunication Standardization Sector code for calling internationally. For example, the US is 1, Great Britain is 44 + </td> + </tr> + + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>country Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>country_name_check</td> + <td>CHECK ((name ~ '[[:alnum:]_]'::text))</td> + </tr> + + <tr class="tr1"> + <td>country_short_name_check</td> + <td>CHECK ((short_name ~ '[[:alnum:]_]'::text))</td> + </tr> + + </table> + + + <!-- Foreign Key Discovery --> + + <p>Tables referencing this one via Foreign Key Constraints:</p> + + <ul> + <li><a href="#public.table.location">location</a></li> + </ul> + + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.custom-field-catalog">custom_field_catalog</a> + </h2> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>custom_field_catalog Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + <tr class="tr0"> <td> + + </td> - <td>fax</td> - <td>character varying(20)</td> + <td>field_id</td> + <td>serial</td> <td><i> + PRIMARY KEY + + + + @@ -2315,11 +2858,19 @@ <tr class="tr1"> <td> + + <a href="#public.table.custom-table-catalog">custom_table_catalog.table_id</a> + + </td> - <td>email</td> - <td>text</td> + <td>table_id</td> + <td>integer</td> <td><i> + + + + @@ -2332,7 +2883,7 @@ <td> </td> - <td>notes</td> + <td>field_name</td> <td>text</td> <td><i> @@ -2344,12 +2895,80 @@ </td> </tr> + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + + <!-- Foreign Key Discovery --> + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.custom-table-catalog">custom_table_catalog</a> + </h2> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>custom_table_catalog Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + + <tr class="tr0"> + <td> + + + + </td> + <td>table_id</td> + <td>serial</td> + <td><i> + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + <tr class="tr1"> <td> </td> - <td>discount</td> - <td>numeric</td> + <td>extends</td> + <td>text</td> <td><i> @@ -2364,13 +2983,90 @@ <td> </td> - <td>taxincluded</td> - <td>boolean</td> + <td>table_name</td> + <td>text</td> <td><i> - DEFAULT false + + </i> + + </td> + </tr> + + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + + <!-- Foreign Key Discovery --> + + <p>Tables referencing this one via Foreign Key Constraints:</p> + + <ul> + <li><a href="#public.table.custom-field-catalog">custom_field_catalog</a></li> + </ul> + + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.customer">customer</a> + </h2> + + <p> This is now a metadata table that holds information specific to customers. Source info is not part of the entity management </p> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>customer Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + + <tr class="tr0"> + <td> + + + + </td> + <td>id</td> + <td>serial</td> + <td><i> + + PRIMARY KEY + + + + + + + </i> </td> @@ -2379,8 +3075,32 @@ <tr class="tr1"> <td> + + <a href="#public.table.entity">entity.id</a> + + </td> - <td>creditlimit</td> + <td>entity_id</td> + <td>integer</td> + <td><i> + + + + + + + + + </i> + <br><br> This is the relationship between entities and customers + </td> + </tr> + + <tr class="tr0"> + <td> + + </td> + <td>discount</td> <td>numeric</td> <td><i> @@ -2392,12 +3112,28 @@ </td> </tr> + <tr class="tr1"> + <td> + + </td> + <td>taxincluded</td> + <td>boolean</td> + <td><i> + + + + DEFAULT false + </i> + + </td> + </tr> + <tr class="tr0"> <td> </td> - <td>terms</td> - <td>smallint</td> + <td>creditlimit</td> + <td>numeric</td> <td><i> @@ -2412,8 +3148,8 @@ <td> </td> - <td>customernumber</td> - <td>character varying(32)</td> + <td>terms</td> + <td>smallint</td> <td><i> @@ -2428,8 +3164,8 @@ <td> </td> - <td>cc</td> - <td>text</td> + <td>customernumber</td> + <td>character varying(32)</td> <td><i> @@ -2444,7 +3180,7 @@ <td> </td> - <td>bcc</td> + <td>cc</td> <td>text</td> <td><i> @@ -2460,8 +3196,8 @@ <td> </td> - <td>business_id</td> - <td>integer</td> + <td>bcc</td> + <td>text</td> <td><i> @@ -2476,8 +3212,8 @@ <td> </td> - <td>taxnumber</td> - <td>character varying(32)</td> + <td>business_id</td> + <td>integer</td> <td><i> @@ -2540,8 +3276,8 @@ <td> </td> - <td>employee_id</td> - <td>integer</td> + <td>language_code</td> + <td>character varying(6)</td> <td><i> @@ -2556,8 +3292,8 @@ <td> </td> - <td>language_code</td> - <td>character varying(6)</td> + <td>pricegroup_id</td> + <td>integer</td> <td><i> @@ -2572,8 +3308,8 @@ <td> </td> - <td>pricegroup_id</td> - <td>integer</td> + <td>curr</td> + <td>character(3)</td> <td><i> @@ -2588,13 +3324,13 @@ <td> </td> - <td>curr</td> - <td>character(3)</td> + <td>startdate</td> + <td>date</td> <td><i> - + DEFAULT ('now'::text)::date </i> </td> @@ -2604,7 +3340,7 @@ <td> </td> - <td>startdate</td> + <td>enddate</td> <td>date</td> <td><i> @@ -2620,8 +3356,8 @@ <td> </td> - <td>enddate</td> - <td>date</td> + <td>invoice_notes</td> + <td>text</td> <td><i> @@ -2649,14 +3385,10 @@ <!-- Indexes --> - customer_contact_key lower((contact)::text) - customer_customernumber_key customernumber customer_id_key id - customer_name_key lower((name)::text) - <!-- View Definition --> @@ -2869,7 +3601,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -2879,7 +3611,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -3037,6 +3769,8 @@ <a name="public.table.employee">employee</a> </h2> + <p> Is a metadata table specific to employees </p> + <table width="100%" cellspacing="0" cellpadding="3"> @@ -3055,7 +3789,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -3065,7 +3799,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -3074,13 +3808,21 @@ <tr class="tr1"> <td> + + <a href="#public.table.entity">entity.id</a> + + </td> - <td>login</td> - <td>text</td> + <td>entity_id</td> + <td>integer</td> <td><i> + + + + NOT NULL </i> @@ -3091,8 +3833,8 @@ <td> </td> - <td>name</td> - <td>character varying(64)</td> + <td>login</td> + <td>text</td> <td><i> @@ -3107,13 +3849,13 @@ <td> </td> - <td>address1</td> - <td>character varying(32)</td> + <td>startdate</td> + <td>date</td> <td><i> - + DEFAULT ('now'::text)::date </i> </td> @@ -3123,8 +3865,8 @@ <td> </td> - <td>address2</td> - <td>character varying(32)</td> + <td>enddate</td> + <td>date</td> <td><i> @@ -3139,8 +3881,8 @@ <td> </td> - <td>city</td> - <td>character varying(32)</td> + <td>notes</td> + <td>text</td> <td><i> @@ -3155,8 +3897,8 @@ <td> </td> - <td>state</td> - <td>character varying(32)</td> + <td>role</td> + <td>character varying(20)</td> <td><i> @@ -3171,13 +3913,13 @@ <td> </td> - <td>zipcode</td> - <td>character varying(10)</td> + <td>sales</td> + <td>boolean</td> <td><i> - + DEFAULT false </i> </td> @@ -3187,8 +3929,8 @@ <td> </td> - <td>country</td> - <td>character varying(32)</td> + <td>ssn</td> + <td>character varying(20)</td> <td><i> @@ -3203,8 +3945,8 @@ <td> </td> - <td>workphone</td> - <td>character varying(20)</td> + <td>iban</td> + <td>character varying(34)</td> <td><i> @@ -3219,8 +3961,8 @@ <td> </td> - <td>homephone</td> - <td>character varying(20)</td> + <td>bic</td> + <td>character varying(11)</td> <td><i> @@ -3235,13 +3977,13 @@ <td> </td> - <td>startdate</td> - <td>date</td> + <td>managerid</td> + <td>integer</td> <td><i> - DEFAULT ('now'::text)::date + </i> </td> @@ -3251,8 +3993,8 @@ <td> </td> - <td>enddate</td> - <td>date</td> + <td>employeenumber</td> + <td>character varying(32)</td> <td><i> @@ -3267,8 +4009,8 @@ <td> </td> - <td>notes</td> - <td>text</td> + <td>dob</td> + <td>date</td> <td><i> @@ -3279,14 +4021,68 @@ </td> </tr> + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + + <!-- Foreign Key Discovery --> + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.entity">entity</a> + </h2> + + <p> The primary entity table to map to all contacts </p> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>entity Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + <tr class="tr0"> <td> + + </td> - <td>role</td> - <td>character varying(20)</td> + <td>id</td> + <td>serial</td> <td><i> + PRIMARY KEY + + + + @@ -3299,90 +4095,314 @@ <td> </td> - <td>sales</td> - <td>boolean</td> + <td>name</td> + <td>text</td> <td><i> - DEFAULT false - </i> + </i> + <br><br> This is the common name of an entity. If it was a person it may be Joshua Drake, a company Acme Corp. You may also choose to use a domain such as commandprompt.com </td> </tr> <tr class="tr0"> <td> + + <a href="#public.table.entity-class">entity_class.id</a> + + </td> - <td>email</td> - <td>text</td> + <td>entity_class</td> + <td>integer</td> <td><i> + + + + NOT NULL </i> </td> </tr> - <tr class="tr1"> + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>entity Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>entity_name_check</td> + <td>CHECK ((name ~ '[[:alnum:]_]'::text))</td> + </tr> + + </table> + + + <!-- Foreign Key Discovery --> + + <p>Tables referencing this one via Foreign Key Constraints:</p> + + <ul> + <li><a href="#public.table.ap">ap</a></li> + </ul> + + <ul> + <li><a href="#public.table.ar">ar</a></li> + </ul> + + <ul> + <li><a href="#public.table.company">company</a></li> + </ul> + + <ul> + <li><a href="#public.table.company-to-entity">company_to_entity</a></li> + </ul> + + <ul> + <li><a href="#public.table.customer">customer</a></li> + </ul> + + <ul> + <li><a href="#public.table.employee">employee</a></li> + </ul> + + <ul> + <li><a href="#public.table.entity-class-to-entity">entity_class_to_entity</a></li> + </ul> + + <ul> + <li><a href="#public.table.entity-other-name">entity_other_name</a></li> + </ul> + + <ul> + <li><a href="#public.table.oe">oe</a></li> + </ul> + + <ul> + <li><a href="#public.table.partsvendor">partsvendor</a></li> + </ul> + + <ul> + <li><a href="#public.table.person">person</a></li> + </ul> + + <ul> + <li><a href="#public.table.person-to-entity">person_to_entity</a></li> + </ul> + + <ul> + <li><a href="#public.table.vendor">vendor</a></li> + </ul> + + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.entity-class">entity_class</a> + </h2> + + <p> Defines the class type such as vendor, customer, contact, employee </p> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>entity_class Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + + <tr class="tr0"> <td> + + </td> - <td>ssn</td> - <td>character varying(20)</td> + <td>id</td> + <td>serial</td> <td><i> + PRIMARY KEY + + + - </i> + </i> + <br><br> The first 7 values are reserved and permanent </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> - <td>iban</td> - <td>character varying(34)</td> + <td>class</td> + <td>text</td> <td><i> - + NOT NULL </i> </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> - <td>bic</td> - <td>character varying(11)</td> + <td>active</td> + <td>boolean</td> <td><i> - - + NOT NULL + DEFAULT true </i> </td> </tr> + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>entity_class Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>entity_class_class_check</td> + <td>CHECK (("class" ~ '[[:alnum:]_]'::text))</td> + </tr> + + </table> + + + <!-- Foreign Key Discovery --> + + <p>Tables referencing this one via Foreign Key Constraints:</p> + + <ul> + <li><a href="#public.table.company">company</a></li> + </ul> + + <ul> + <li><a href="#public.table.entity">entity</a></li> + </ul> + + <ul> + <li><a href="#public.table.entity-class-to-entity">entity_class_to_entity</a></li> + </ul> + + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.entity-class-to-entity">entity_class_to_entity</a> + </h2> + + <p> Relation builder for classes to entity </p> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>entity_class_to_entity Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + <tr class="tr0"> <td> + + <a href="#public.table.entity-class">entity_class.id</a> + + + + </td> - <td>managerid</td> + <td>entity_class_id</td> <td>integer</td> <td><i> + + + + + PRIMARY KEY + + + + @@ -3394,11 +4414,26 @@ <tr class="tr1"> <td> + + <a href="#public.table.entity">entity.id</a> + + + + </td> - <td>employeenumber</td> - <td>character varying(32)</td> + <td>entity_id</td> + <td>integer</td> <td><i> + + + + + PRIMARY KEY + + + + @@ -3407,14 +4442,99 @@ </td> </tr> + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + + <!-- Foreign Key Discovery --> + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.entity-other-name">entity_other_name</a> + </h2> + + <p> Similar to company_other_name, a person may be jd, Joshua Drake, linuxpoet... all are the same person. </p> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>entity_other_name Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + <tr class="tr0"> <td> + + <a href="#public.table.entity">entity.id</a> + + + + </td> - <td>dob</td> - <td>date</td> + <td>entity_id</td> + <td>integer</td> <td><i> + + + + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + + + </td> + <td>other_name</td> + <td>text</td> + <td><i> + + PRIMARY KEY + + + + @@ -3434,16 +4554,27 @@ <!-- Constraint List --> + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>entity_other_name Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>entity_other_name_other_name_check</td> + <td>CHECK ((other_name ~ '[[:alnum:]_]'::text))</td> + </tr> + + </table> + <!-- Foreign Key Discovery --> <!-- Indexes --> - employee_id_key id - - employee_name_key lower((name)::text) - <!-- View Definition --> @@ -3688,7 +4819,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -3698,7 +4829,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -3755,11 +4886,19 @@ <tr class="tr0"> <td> + + <a href="#public.table.person">person.id</a> + + </td> - <td>employee_id</td> + <td>person_id</td> <td>integer</td> <td><i> + + + + @@ -3819,8 +4958,6 @@ gl_description_key lower(description) - gl_employee_id_key employee_id - gl_id_key id gl_reference_key reference @@ -3954,13 +5091,21 @@ <tr class="tr0"> <td> + + <a href="#public.table.person">person.id</a> + + </td> - <td>employee_id</td> + <td>person_id</td> <td>integer</td> <td><i> + + + + NOT NULL </i> @@ -4042,7 +5187,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -4052,7 +5197,7 @@ - DEFAULT nextval('invoiceid'::regclass) + </i> </td> @@ -4338,7 +5483,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -4348,7 +5493,7 @@ - DEFAULT nextval('jcitemsid'::regclass) + </i> </td> @@ -4517,13 +5662,21 @@ <tr class="tr1"> <td> + + <a href="#public.table.person">person.id</a> + + </td> - <td>employee_id</td> + <td>person_id</td> <td>integer</td> <td><i> + + + + NOT NULL </i> @@ -4663,6 +5816,222 @@ <hr> <h2>Table: + <a name="public.table.location">location</a> + </h2> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>location Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + + <tr class="tr0"> + <td> + + + + </td> + <td>id</td> + <td>serial</td> + <td><i> + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + </td> + <td>line_one</td> + <td>text</td> + <td><i> + + + NOT NULL + + </i> + + </td> + </tr> + + <tr class="tr0"> + <td> + + </td> + <td>line_two</td> + <td>text</td> + <td><i> + + + + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + </td> + <td>line_three</td> + <td>text</td> + <td><i> + + + + + </i> + + </td> + </tr> + + <tr class="tr0"> + <td> + + </td> + <td>city_province</td> + <td>text</td> + <td><i> + + + NOT NULL + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + + <a href="#public.table.country">country.id</a> + + + </td> + <td>country_id</td> + <td>integer</td> + <td><i> + + + + + + + NOT NULL + + </i> + + </td> + </tr> + + <tr class="tr0"> + <td> + + </td> + <td>mail_code</td> + <td>text</td> + <td><i> + + + NOT NULL + + </i> + + </td> + </tr> + + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>location Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>location_city_province_check</td> + <td>CHECK ((city_province ~ '[[:alnum:]_]'::text))</td> + </tr> + + <tr class="tr1"> + <td>location_line_one_check</td> + <td>CHECK ((line_one ~ '[[:alnum:]_]'::text))</td> + </tr> + + <tr class="tr0"> + <td>location_mail_code_check</td> + <td>CHECK ((mail_code ~ '[[:alnum:]_]'::text))</td> + </tr> + + </table> + + + <!-- Foreign Key Discovery --> + + <p>Tables referencing this one via Foreign Key Constraints:</p> + + <ul> + <li><a href="#public.table.company">company</a></li> + </ul> + + <ul> + <li><a href="#public.table.company-to-location">company_to_location</a></li> + </ul> + + <ul> + <li><a href="#public.table.person">person</a></li> + </ul> + + <ul> + <li><a href="#public.table.person-to-company">person_to_company</a></li> + </ul> + + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: <a name="public.table.makemodel">makemodel</a> </h2> @@ -4790,7 +6159,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -4800,7 +6169,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -4841,36 +6210,28 @@ <tr class="tr1"> <td> - </td> - <td>vendor_id</td> - <td>integer</td> - <td><i> - - - - - </i> - - </td> - </tr> - - <tr class="tr0"> - <td> + + <a href="#public.table.entity">entity.id</a> + </td> - <td>customer_id</td> + <td>entity_id</td> <td>integer</td> <td><i> + + + + NOT NULL </i> </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -4886,7 +6247,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -4902,7 +6263,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -4918,7 +6279,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -4934,7 +6295,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -4950,7 +6311,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -4966,7 +6327,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -4982,23 +6343,31 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> + + <a href="#public.table.person">person.id</a> + + </td> - <td>employee_id</td> + <td>person_id</td> <td>integer</td> <td><i> + + + + NOT NULL </i> </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -5014,7 +6383,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -5030,7 +6399,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -5046,7 +6415,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -5062,7 +6431,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -5078,7 +6447,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -5094,7 +6463,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -5110,7 +6479,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -5126,7 +6495,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -5142,6 +6511,30 @@ </td> </tr> + <tr class="tr1"> + <td> + + + <a href="#public.table.oe-class">oe_class.id</a> + + + </td> + <td>oe_class_id</td> + <td>integer</td> + <td><i> + + + + + + + NOT NULL + + </i> + + </td> + </tr> + </table> <!-- Inherits --> @@ -5159,8 +6552,6 @@ <!-- Indexes --> - oe_employee_id_key employee_id - oe_id_key id oe_ordnumber_key ordnumber @@ -5181,6 +6572,122 @@ <hr> <h2>Table: + <a name="public.table.oe-class">oe_class</a> + </h2> + + <p> This could probably be done better. But I need to remove the customer_id/vendor_id relationship and instead rely on a classification </p> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>oe_class Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + + <tr class="tr0"> + <td> + + + + </td> + <td>id</td> + <td>smallint</td> + <td><i> + + + + + UNIQUE + + + + + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + + + </td> + <td>oe_class</td> + <td>text</td> + <td><i> + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>oe_class Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>oe_class_id_check</td> + <td>CHECK (((id = 1) OR (id = 2)))</td> + </tr> + + </table> + + + <!-- Foreign Key Discovery --> + + <p>Tables referencing this one via Foreign Key Constraints:</p> + + <ul> + <li><a href="#public.table.oe">oe</a></li> + </ul> + + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: <a name="public.table.orderitems">orderitems</a> </h2> @@ -5202,7 +6709,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -5212,7 +6719,7 @@ - DEFAULT nextval('orderitemsid'::regclass) + </i> </td> @@ -5466,7 +6973,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -5476,7 +6983,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -6159,7 +7666,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -6169,7 +7676,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -6374,13 +7881,21 @@ <tr class="tr0"> <td> + + <a href="#public.table.entity">entity.id</a> + + </td> - <td>vendor_id</td> + <td>entity_id</td> <td>integer</td> <td><i> + + + + NOT NULL </i> @@ -6509,7 +8024,666 @@ partsvendor_parts_id_key parts_id - partsvendor_vendor_id_key vendor_id + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.person">person</a> + </h2> + + <p> Every person, must have an entity to derive a common or display name. The correct way to get class information on a person would be person.entity_id->entity_class_to_entity.entity_id. </p> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>person Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + + <tr class="tr0"> + <td> + + + + </td> + <td>id</td> + <td>serial</td> + <td><i> + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + + <a href="#public.table.entity">entity.id</a> + + + </td> + <td>entity_id</td> + <td>integer</td> + <td><i> + + + + + + + NOT NULL + + </i> + + </td> + </tr> + + <tr class="tr0"> + <td> + + + <a href="#public.table.salutation">salutation.id</a> + + + </td> + <td>salutation_id</td> + <td>integer</td> + <td><i> + + + + + + + + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + </td> + <td>first_name</td> + <td>text</td> + <td><i> + + + NOT NULL + + </i> + + </td> + </tr> + + <tr class="tr0"> + <td> + + </td> + <td>middle_name</td> + <td>text</td> + <td><i> + + + + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + </td> + <td>last_name</td> + <td>text</td> + <td><i> + + + NOT NULL + + </i> + + </td> + </tr> + + <tr class="tr0"> + <td> + + + <a href="#public.table.location">location.id</a> + + + </td> + <td>primary_location_id</td> + <td>integer</td> + <td><i> + + + + + + + + + </i> + + </td> + </tr> + + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>person Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>person_first_name_check</td> + <td>CHECK ((first_name ~ '[[:alnum:]_]'::text))</td> + </tr> + + <tr class="tr1"> + <td>person_last_name_check</td> + <td>CHECK ((last_name ~ '[[:alnum:]_]'::text))</td> + </tr> + + </table> + + + <!-- Foreign Key Discovery --> + + <p>Tables referencing this one via Foreign Key Constraints:</p> + + <ul> + <li><a href="#public.table.ap">ap</a></li> + </ul> + + <ul> + <li><a href="#public.table.ar">ar</a></li> + </ul> + + <ul> + <li><a href="#public.table.audittrail">audittrail</a></li> + </ul> + + <ul> + <li><a href="#public.table.gl">gl</a></li> + </ul> + + <ul> + <li><a href="#public.table.inventory">inventory</a></li> + </ul> + + <ul> + <li><a href="#public.table.jcitems">jcitems</a></li> + </ul> + + <ul> + <li><a href="#public.table.oe">oe</a></li> + </ul> + + <ul> + <li><a href="#public.table.person-to-company">person_to_company</a></li> + </ul> + + <ul> + <li><a href="#public.table.person-to-contact">person_to_contact</a></li> + </ul> + + <ul> + <li><a href="#public.table.person-to-entity">person_to_entity</a></li> + </ul> + + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.person-to-company">person_to_company</a> + </h2> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>person_to_company Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + + <tr class="tr0"> + <td> + + + <a href="#public.table.location">location.id</a> + + + + + </td> + <td>location_id</td> + <td>integer</td> + <td><i> + + + + + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + + <a href="#public.table.person">person.id</a> + + + + + </td> + <td>person_id</td> + <td>integer</td> + <td><i> + + + + + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + + <!-- Foreign Key Discovery --> + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.person-to-contact">person_to_contact</a> + </h2> + + <p> To keep track of the relationship between multiple contact methods and a single individual </p> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>person_to_contact Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + + <tr class="tr0"> + <td> + + + <a href="#public.table.person">person.id</a> + + + + + </td> + <td>person_id</td> + <td>integer</td> + <td><i> + + + + + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + + <a href="#public.table.contact-class">contact_class.id</a> + + + + + </td> + <td>contact_class_id</td> + <td>integer</td> + <td><i> + + + + + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + <tr class="tr0"> + <td> + + + + </td> + <td>contact</td> + <td>text</td> + <td><i> + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>person_to_contact Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>person_to_contact_contact_check</td> + <td>CHECK ((contact ~ '[[:alnum:]_]'::text))</td> + </tr> + + </table> + + + <!-- Foreign Key Discovery --> + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: + <a name="public.table.person-to-entity">person_to_entity</a> + </h2> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>person_to_entity Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + + <tr class="tr0"> + <td> + + + <a href="#public.table.person">person.id</a> + + + + + </td> + <td>person_id</td> + <td>integer</td> + <td><i> + + + + + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + + <a href="#public.table.entity">entity.id</a> + + + + + </td> + <td>entity_id</td> + <td>integer</td> + <td><i> + + + + + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + <tr class="tr0"> + <td> + + </td> + <td>related_how</td> + <td>text</td> + <td><i> + + + + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + </td> + <td>created</td> + <td>date</td> + <td><i> + + + NOT NULL + DEFAULT ('now'::text)::date + </i> + + </td> + </tr> + + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + <p> </p> + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>person_to_entity Constraints</caption> + <tr> + <th>Name</th> + <th>Constraint</th> + </tr> + + <tr class="tr0"> + <td>person_to_entity_check</td> + <td>CHECK ((entity_id <> person_id))</td> + </tr> + + </table> + + + <!-- Foreign Key Discovery --> + + + <!-- Indexes --> <!-- View Definition --> @@ -6546,7 +8720,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -6556,7 +8730,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -6634,7 +8808,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -6644,7 +8818,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> @@ -7239,6 +9413,105 @@ <hr> <h2>Table: + <a name="public.table.salutation">salutation</a> + </h2> + + + + <table width="100%" cellspacing="0" cellpadding="3"> + <caption>salutation Structure</caption> + <tr> + <th>F-Key</th> + <th>Name</th> + <th>Type</th> + <th>Description</th> + </tr> + + <tr class="tr0"> + <td> + + + + </td> + <td>id</td> + <td>serial</td> + <td><i> + + + + + UNIQUE + + + + NOT NULL + + </i> + + </td> + </tr> + + <tr class="tr1"> + <td> + + + + </td> + <td>salutation</td> + <td>text</td> + <td><i> + + PRIMARY KEY + + + + + + + + </i> + + </td> + </tr> + + </table> + + <!-- Inherits --> + + + + + + + <!-- Constraint List --> + + + <!-- Foreign Key Discovery --> + + <p>Tables referencing this one via Foreign Key Constraints:</p> + + <ul> + <li><a href="#public.table.person">person</a></li> + </ul> + + + + <!-- Indexes --> + + + <!-- View Definition --> + + + <!-- List off permissions --> + + + <p> + <a href="#index">Index</a> - + <a href="#public.schema">Schema public</a> + </p> + + <hr> + <h2>Table: <a name="public.table.shipto">shipto</a> </h2> @@ -8305,6 +10578,8 @@ <a name="public.table.vendor">vendor</a> </h2> + <p> Now a meta data table </p> + <table width="100%" cellspacing="0" cellpadding="3"> @@ -8323,7 +10598,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -8333,70 +10608,6 @@ - DEFAULT nextval('id'::regclass) - </i> - - </td> - </tr> - - <tr class="tr1"> - <td> - - </td> - <td>name</td> - <td>character varying(64)</td> - <td><i> - - - - - </i> - - </td> - </tr> - - <tr class="tr0"> - <td> - - </td> - <td>address1</td> - <td>character varying(32)</td> - <td><i> - - - - - </i> - - </td> - </tr> - - <tr class="tr1"> - <td> - - </td> - <td>address2</td> - <td>character varying(32)</td> - <td><i> - - - - - </i> - - </td> - </tr> - - <tr class="tr0"> - <td> - - </td> - <td>city</td> - <td>character varying(32)</td> - <td><i> - - - </i> @@ -8406,109 +10617,21 @@ <tr class="tr1"> <td> - </td> - <td>state</td> - <td>character varying(32)</td> - <td><i> - - - - - </i> - - </td> - </tr> - - <tr class="tr0"> - <td> - - </td> - <td>zipcode</td> - <td>character varying(10)</td> - <td><i> - - - - - </i> - - </td> - </tr> - - <tr class="tr1"> - <td> - - </td> - <td>country</td> - <td>character varying(32)</td> - <td><i> - - - - - </i> - - </td> - </tr> - - <tr class="tr0"> - <td> - - </td> - <td>contact</td> - <td>character varying(64)</td> - <td><i> - - - - - </i> - - </td> - </tr> - - <tr class="tr1"> - <td> - - </td> - <td>phone</td> - <td>character varying(20)</td> - <td><i> - - - - - </i> - - </td> - </tr> - - <tr class="tr0"> - <td> + + <a href="#public.table.entity">entity.id</a> + </td> - <td>fax</td> - <td>character varying(20)</td> + <td>entity_id</td> + <td>integer</td> <td><i> + - - - </i> - - </td> - </tr> - - <tr class="tr1"> - <td> - - </td> - <td>email</td> - <td>text</td> - <td><i> + - + NOT NULL </i> @@ -8519,22 +10642,6 @@ <td> </td> - <td>notes</td> - <td>text</td> - <td><i> - - - - - </i> - - </td> - </tr> - - <tr class="tr1"> - <td> - - </td> <td>terms</td> <td>smallint</td> <td><i> @@ -8547,7 +10654,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -8563,7 +10670,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -8579,7 +10686,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -8595,7 +10702,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -8611,7 +10718,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -8627,7 +10734,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -8643,7 +10750,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -8659,7 +10766,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -8675,7 +10782,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -8691,7 +10798,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -8707,7 +10814,7 @@ </td> </tr> - <tr class="tr0"> + <tr class="tr1"> <td> </td> @@ -8723,7 +10830,7 @@ </td> </tr> - <tr class="tr1"> + <tr class="tr0"> <td> </td> @@ -8739,22 +10846,6 @@ </td> </tr> - <tr class="tr0"> - <td> - - </td> - <td>employee_id</td> - <td>integer</td> - <td><i> - - - - - </i> - - </td> - </tr> - <tr class="tr1"> <td> @@ -8852,12 +10943,8 @@ <!-- Indexes --> - vendor_contact_key lower((contact)::text) - vendor_id_key id - vendor_name_key lower((name)::text) - vendor_vendornumber_key vendornumber @@ -8951,8 +11038,6 @@ <!-- Indexes --> - vendortax_vendor_id_key vendor_id - <!-- View Definition --> @@ -8988,7 +11073,7 @@ </td> <td>id</td> - <td>integer</td> + <td>serial</td> <td><i> PRIMARY KEY @@ -8998,7 +11083,7 @@ - DEFAULT nextval('id'::regclass) + </i> </td> diff --git a/doc/database/ledgersmb.neato b/doc/database/ledgersmb.neato index 278993c7..cea533cc 100644 --- a/doc/database/ledgersmb.neato +++ b/doc/database/ledgersmb.neato @@ -4,67 +4,99 @@ edge []; "acc_trans" [shape = record, label = "{<col0> \N| trans_id: integer\lchart_id: integer\lamount: numeric\ltransdate: date\lsource: text\lcleared: boolean\lfx_transaction: boolean\lproject_id: integer\lmemo: text\linvoice_id: integer\lentry_id: serial\l}" ]; -"ap" [shape = record, label = "{<col0> \N| id: integer\linvnumber: text\ltransdate: date\lvendor_id: integer\ltaxincluded: boolean\lamount: numeric\lnetamount: numeric\lpaid: numeric\ldatepaid: date\lduedate: date\linvoice: boolean\lordnumber: text\lcurr: character(3)\lnotes: text\lemployee_id: integer\ltill: character varying(20)\lquonumber: text\lintnotes: text\ldepartment_id: integer\lshipvia: text\llanguage_code: character varying(6)\lponumber: text\lshippingpoint: text\lterms: smallint\l}" ]; +"ap" [shape = record, label = "{<col0> \N| id: serial\linvnumber: text\ltransdate: date\lentity_id: integer\ltaxincluded: boolean\lamount: numeric\lnetamount: numeric\lpaid: numeric\ldatepaid: date\lduedate: date\linvoice: boolean\lordnumber: text\lcurr: character(3)\lnotes: text\lperson_id: integer\ltill: character varying(20)\lquonumber: text\lintnotes: text\ldepartment_id: integer\lshipvia: text\llanguage_code: character varying(6)\lponumber: text\lshippingpoint: text\lterms: smallint\l}" ]; -"ar" [shape = record, label = "{<col0> \N| id: integer\linvnumber: text\ltransdate: date\lcustomer_id: integer\ltaxincluded: boolean\lamount: numeric\lnetamount: numeric\lpaid: numeric\ldatepaid: date\lduedate: date\linvoice: boolean\lshippingpoint: text\lterms: smallint\lnotes: text\lcurr: character(3)\lordnumber: text\lemployee_id: integer\ltill: character varying(20)\lquonumber: text\lintnotes: text\ldepartment_id: integer\lshipvia: text\llanguage_code: character varying(6)\lponumber: text\l}" ]; +"ar" [shape = record, label = "{<col0> \N| id: serial\linvnumber: text\ltransdate: date\lentity_id: integer\ltaxincluded: boolean\lamount: numeric\lnetamount: numeric\lpaid: numeric\ldatepaid: date\lduedate: date\linvoice: boolean\lshippingpoint: text\lterms: smallint\lnotes: text\lcurr: character(3)\lordnumber: text\lperson_id: integer\ltill: character varying(20)\lquonumber: text\lintnotes: text\ldepartment_id: integer\lshipvia: text\llanguage_code: character varying(6)\lponumber: text\l}" ]; "assembly" [shape = record, label = "{<col0> \N| id: integer\lparts_id: integer\lqty: numeric\lbom: boolean\ladj: boolean\l}" ]; -"audittrail" [shape = record, label = "{<col0> \N| trans_id: integer\ltablename: text\lreference: text\lformname: text\laction: text\ltransdate: timestamp without time zone\lemployee_id: integer\lentry_id: bigserial\l}" ]; +"audittrail" [shape = record, label = "{<col0> \N| trans_id: integer\ltablename: text\lreference: text\lformname: text\laction: text\ltransdate: timestamp without time zone\lperson_id: integer\lentry_id: bigserial\l}" ]; -"business" [shape = record, label = "{<col0> \N| id: integer\ldescription: text\ldiscount: numeric\l}" ]; +"business" [shape = record, label = "{<col0> \N| id: serial\ldescription: text\ldiscount: numeric\l}" ]; -"chart" [shape = record, label = "{<col0> \N| id: integer\laccno: text\ldescription: text\lcharttype: character(1)\lcategory: character(1)\llink: text\lgifi_accno: text\lcontra: boolean\l}" ]; +"chart" [shape = record, label = "{<col0> \N| id: serial\laccno: text\ldescription: text\lcharttype: character(1)\lcategory: character(1)\llink: text\lgifi_accno: text\lcontra: boolean\l}" ]; + +"company" [shape = record, label = "{<col0> \N| id: serial\lentity_id: integer\llegal_name: text\lentity_class_id: integer\lprimary_location_id: integer\ltax_id: text\l}" ]; + +"company_to_contact" [shape = record, label = "{<col0> \N| company_id: integer\lcontact_class_id: integer\lcontact: text\l}" ]; + +"company_to_entity" [shape = record, label = "{<col0> \N| company_id: integer\lentity_id: integer\lrelated_how: text\lcreated: date\l}" ]; + +"company_to_location" [shape = record, label = "{<col0> \N| location_id: integer\lcompany_id: integer\l}" ]; + +"contact_class" [shape = record, label = "{<col0> \N| id: serial\lclass: text\l}" ]; + +"country" [shape = record, label = "{<col0> \N| id: serial\lname: text\lshort_name: text\litu: text\l}" ]; "custom_field_catalog" [shape = record, label = "{<col0> \N| field_id: serial\ltable_id: integer\lfield_name: text\l}" ]; "custom_table_catalog" [shape = record, label = "{<col0> \N| table_id: serial\lextends: text\ltable_name: text\l}" ]; -"customer" [shape = record, label = "{<col0> \N| id: integer\lname: character varying(64)\laddress1: character varying(32)\laddress2: character varying(32)\lcity: character varying(32)\lstate: character varying(32)\lzipcode: character varying(10)\lcountry: character varying(32)\lcontact: character varying(64)\lphone: character varying(20)\lfax: character varying(20)\lemail: text\lnotes: text\ldiscount: numeric\ltaxincluded: boolean\lcreditlimit: numeric\lterms: smallint\lcustomernumber: character varying(32)\lcc: text\lbcc: text\lbusiness_id: integer\ltaxnumber: character varying(32)\lsic_code: character varying(6)\liban: character varying(34)\lbic: character varying(11)\lemployee_id: integer\llanguage_code: character varying(6)\lpricegroup_id: integer\lcurr: character(3)\lstartdate: date\lenddate: date\l}" ]; +"customer" [shape = record, label = "{<col0> \N| id: serial\lentity_id: integer\ldiscount: numeric\ltaxincluded: boolean\lcreditlimit: numeric\lterms: smallint\lcustomernumber: character varying(32)\lcc: text\lbcc: text\lbusiness_id: integer\lsic_code: character varying(6)\liban: character varying(34)\lbic: character varying(11)\llanguage_code: character varying(6)\lpricegroup_id: integer\lcurr: character(3)\lstartdate: date\lenddate: date\linvoice_notes: text\l}" ]; "customertax" [shape = record, label = "{<col0> \N| customer_id: integer\lchart_id: integer\l}" ]; "defaults" [shape = record, label = "{<col0> \N| setting_key: text\lvalue: text\l}" ]; -"department" [shape = record, label = "{<col0> \N| id: integer\ldescription: text\lrole: character(1)\l}" ]; +"department" [shape = record, label = "{<col0> \N| id: serial\ldescription: text\lrole: character(1)\l}" ]; "dpt_trans" [shape = record, label = "{<col0> \N| trans_id: integer\ldepartment_id: integer\l}" ]; -"employee" [shape = record, label = "{<col0> \N| id: integer\llogin: text\lname: character varying(64)\laddress1: character varying(32)\laddress2: character varying(32)\lcity: character varying(32)\lstate: character varying(32)\lzipcode: character varying(10)\lcountry: character varying(32)\lworkphone: character varying(20)\lhomephone: character varying(20)\lstartdate: date\lenddate: date\lnotes: text\lrole: character varying(20)\lsales: boolean\lemail: text\lssn: character varying(20)\liban: character varying(34)\lbic: character varying(11)\lmanagerid: integer\lemployeenumber: character varying(32)\ldob: date\l}" ]; +"employee" [shape = record, label = "{<col0> \N| id: serial\lentity_id: integer\llogin: text\lstartdate: date\lenddate: date\lnotes: text\lrole: character varying(20)\lsales: boolean\lssn: character varying(20)\liban: character varying(34)\lbic: character varying(11)\lmanagerid: integer\lemployeenumber: character varying(32)\ldob: date\l}" ]; + +"entity" [shape = record, label = "{<col0> \N| id: serial\lname: text\lentity_class: integer\l}" ]; + +"entity_class" [shape = record, label = "{<col0> \N| id: serial\lclass: text\lactive: boolean\l}" ]; + +"entity_class_to_entity" [shape = record, label = "{<col0> \N| entity_class_id: integer\lentity_id: integer\l}" ]; + +"entity_other_name" [shape = record, label = "{<col0> \N| entity_id: integer\lother_name: text\l}" ]; "exchangerate" [shape = record, label = "{<col0> \N| curr: character(3)\ltransdate: date\lbuy: numeric\lsell: numeric\l}" ]; "gifi" [shape = record, label = "{<col0> \N| accno: text\ldescription: text\l}" ]; -"gl" [shape = record, label = "{<col0> \N| id: integer\lreference: text\ldescription: text\ltransdate: date\lemployee_id: integer\lnotes: text\ldepartment_id: integer\l}" ]; +"gl" [shape = record, label = "{<col0> \N| id: serial\lreference: text\ldescription: text\ltransdate: date\lperson_id: integer\lnotes: text\ldepartment_id: integer\l}" ]; -"inventory" [shape = record, label = "{<col0> \N| warehouse_id: integer\lparts_id: integer\ltrans_id: integer\lorderitems_id: integer\lqty: numeric\lshippingdate: date\lemployee_id: integer\lentry_id: serial\l}" ]; +"inventory" [shape = record, label = "{<col0> \N| warehouse_id: integer\lparts_id: integer\ltrans_id: integer\lorderitems_id: integer\lqty: numeric\lshippingdate: date\lperson_id: integer\lentry_id: serial\l}" ]; -"invoice" [shape = record, label = "{<col0> \N| id: integer\ltrans_id: integer\lparts_id: integer\ldescription: text\lqty: integer\lallocated: integer\lsellprice: numeric\lfxsellprice: numeric\ldiscount: real\lassemblyitem: boolean\lunit: character varying(5)\lproject_id: integer\ldeliverydate: date\lserialnumber: text\lnotes: text\l}" ]; +"invoice" [shape = record, label = "{<col0> \N| id: serial\ltrans_id: integer\lparts_id: integer\ldescription: text\lqty: integer\lallocated: integer\lsellprice: numeric\lfxsellprice: numeric\ldiscount: real\lassemblyitem: boolean\lunit: character varying(5)\lproject_id: integer\ldeliverydate: date\lserialnumber: text\lnotes: text\l}" ]; -"jcitems" [shape = record, label = "{<col0> \N| id: integer\lproject_id: integer\lparts_id: integer\ldescription: text\lqty: numeric\lallocated: numeric\lsellprice: numeric\lfxsellprice: numeric\lserialnumber: text\lcheckedin: timestamp with time zone\lcheckedout: timestamp with time zone\lemployee_id: integer\lnotes: text\l}" ]; +"jcitems" [shape = record, label = "{<col0> \N| id: serial\lproject_id: integer\lparts_id: integer\ldescription: text\lqty: numeric\lallocated: numeric\lsellprice: numeric\lfxsellprice: numeric\lserialnumber: text\lcheckedin: timestamp with time zone\lcheckedout: timestamp with time zone\lperson_id: integer\lnotes: text\l}" ]; "language" [shape = record, label = "{<col0> \N| code: character varying(6)\ldescription: text\l}" ]; +"location" [shape = record, label = "{<col0> \N| id: serial\lline_one: text\lline_two: text\lline_three: text\lcity_province: text\lcountry_id: integer\lmail_code: text\l}" ]; + "makemodel" [shape = record, label = "{<col0> \N| parts_id: integer\lmake: text\lmodel: text\l}" ]; -"oe" [shape = record, label = "{<col0> \N| id: integer\lordnumber: text\ltransdate: date\lvendor_id: integer\lcustomer_id: integer\lamount: numeric\lnetamount: numeric\lreqdate: date\ltaxincluded: boolean\lshippingpoint: text\lnotes: text\lcurr: character(3)\lemployee_id: integer\lclosed: boolean\lquotation: boolean\lquonumber: text\lintnotes: text\ldepartment_id: integer\lshipvia: text\llanguage_code: character varying(6)\lponumber: text\lterms: smallint\l}" ]; +"oe" [shape = record, label = "{<col0> \N| id: serial\lordnumber: text\ltransdate: date\lentity_id: integer\lamount: numeric\lnetamount: numeric\lreqdate: date\ltaxincluded: boolean\lshippingpoint: text\lnotes: text\lcurr: character(3)\lperson_id: integer\lclosed: boolean\lquotation: boolean\lquonumber: text\lintnotes: text\ldepartment_id: integer\lshipvia: text\llanguage_code: character varying(6)\lponumber: text\lterms: smallint\loe_class_id: integer\l}" ]; -"orderitems" [shape = record, label = "{<col0> \N| id: integer\ltrans_id: integer\lparts_id: integer\ldescription: text\lqty: numeric\lsellprice: numeric\ldiscount: numeric\lunit: character varying(5)\lproject_id: integer\lreqdate: date\lship: numeric\lserialnumber: text\lnotes: text\l}" ]; +"oe_class" [shape = record, label = "{<col0> \N| id: smallint\loe_class: text\l}" ]; -"parts" [shape = record, label = "{<col0> \N| id: integer\lpartnumber: text\ldescription: text\lunit: character varying(5)\llistprice: numeric\lsellprice: numeric\llastcost: numeric\lpriceupdate: date\lweight: numeric\lonhand: numeric\lnotes: text\lmakemodel: boolean\lassembly: boolean\lalternate: boolean\lrop: real\linventory_accno_id: integer\lincome_accno_id: integer\lexpense_accno_id: integer\lbin: text\lobsolete: boolean\lbom: boolean\limage: text\ldrawing: text\lmicrofiche: text\lpartsgroup_id: integer\lproject_id: integer\lavgcost: numeric\l}" ]; +"orderitems" [shape = record, label = "{<col0> \N| id: serial\ltrans_id: integer\lparts_id: integer\ldescription: text\lqty: numeric\lsellprice: numeric\ldiscount: numeric\lunit: character varying(5)\lproject_id: integer\lreqdate: date\lship: numeric\lserialnumber: text\lnotes: text\l}" ]; + +"parts" [shape = record, label = "{<col0> \N| id: serial\lpartnumber: text\ldescription: text\lunit: character varying(5)\llistprice: numeric\lsellprice: numeric\llastcost: numeric\lpriceupdate: date\lweight: numeric\lonhand: numeric\lnotes: text\lmakemodel: boolean\lassembly: boolean\lalternate: boolean\lrop: real\linventory_accno_id: integer\lincome_accno_id: integer\lexpense_accno_id: integer\lbin: text\lobsolete: boolean\lbom: boolean\limage: text\ldrawing: text\lmicrofiche: text\lpartsgroup_id: integer\lproject_id: integer\lavgcost: numeric\l}" ]; "partscustomer" [shape = record, label = "{<col0> \N| parts_id: integer\lcustomer_id: integer\lpricegroup_id: integer\lpricebreak: numeric\lsellprice: numeric\lvalidfrom: date\lvalidto: date\lcurr: character(3)\lentry_id: serial\l}" ]; -"partsgroup" [shape = record, label = "{<col0> \N| id: integer\lpartsgroup: text\l}" ]; +"partsgroup" [shape = record, label = "{<col0> \N| id: serial\lpartsgroup: text\l}" ]; "partstax" [shape = record, label = "{<col0> \N| parts_id: integer\lchart_id: integer\ltaxcategory_id: integer\l}" ]; -"partsvendor" [shape = record, label = "{<col0> \N| vendor_id: integer\lparts_id: integer\lpartnumber: text\lleadtime: smallint\llastcost: numeric\lcurr: character(3)\lentry_id: serial\l}" ]; +"partsvendor" [shape = record, label = "{<col0> \N| entity_id: integer\lparts_id: integer\lpartnumber: text\lleadtime: smallint\llastcost: numeric\lcurr: character(3)\lentry_id: serial\l}" ]; + +"person" [shape = record, label = "{<col0> \N| id: serial\lentity_id: integer\lsalutation_id: integer\lfirst_name: text\lmiddle_name: text\llast_name: text\lprimary_location_id: integer\l}" ]; -"pricegroup" [shape = record, label = "{<col0> \N| id: integer\lpricegroup: text\l}" ]; +"person_to_company" [shape = record, label = "{<col0> \N| location_id: integer\lperson_id: integer\l}" ]; -"project" [shape = record, label = "{<col0> \N| id: integer\lprojectnumber: text\ldescription: text\lstartdate: date\lenddate: date\lparts_id: integer\lproduction: numeric\lcompleted: numeric\lcustomer_id: integer\l}" ]; +"person_to_contact" [shape = record, label = "{<col0> \N| person_id: integer\lcontact_class_id: integer\lcontact: text\l}" ]; + +"person_to_entity" [shape = record, label = "{<col0> \N| person_id: integer\lentity_id: integer\lrelated_how: text\lcreated: date\l}" ]; + +"pricegroup" [shape = record, label = "{<col0> \N| id: serial\lpricegroup: text\l}" ]; + +"project" [shape = record, label = "{<col0> \N| id: serial\lprojectnumber: text\ldescription: text\lstartdate: date\lenddate: date\lparts_id: integer\lproduction: numeric\lcompleted: numeric\lcustomer_id: integer\l}" ]; "recurring" [shape = record, label = "{<col0> \N| id: integer\lreference: text\lstartdate: date\lnextdate: date\lenddate: date\lrepeat: smallint\lunit: character varying(6)\lhowmany: integer\lpayment: boolean\l}" ]; @@ -72,6 +104,8 @@ edge []; "recurringprint" [shape = record, label = "{<col0> \N| id: integer\lformname: text\lformat: text\lprinter: text\l}" ]; +"salutation" [shape = record, label = "{<col0> \N| id: serial\lsalutation: text\l}" ]; + "shipto" [shape = record, label = "{<col0> \N| trans_id: integer\lshiptoname: character varying(64)\lshiptoaddress1: character varying(32)\lshiptoaddress2: character varying(32)\lshiptocity: character varying(32)\lshiptostate: character varying(32)\lshiptozipcode: character varying(10)\lshiptocountry: character varying(32)\lshiptocontact: character varying(64)\lshiptophone: character varying(20)\lshiptofax: character varying(20)\lshiptoemail: text\lentry_id: serial\l}" ]; "sic" [shape = record, label = "{<col0> \N| code: character varying(6)\lsictype: character(1)\ldescription: text\l}" ]; @@ -88,23 +122,61 @@ edge []; "translation" [shape = record, label = "{<col0> \N| trans_id: integer\llanguage_code: character varying(6)\ldescription: text\l}" ]; -"vendor" [shape = record, label = "{<col0> \N| id: integer\lname: character varying(64)\laddress1: character varying(32)\laddress2: character varying(32)\lcity: character varying(32)\lstate: character varying(32)\lzipcode: character varying(10)\lcountry: character varying(32)\lcontact: character varying(64)\lphone: character varying(20)\lfax: character varying(20)\lemail: text\lnotes: text\lterms: smallint\ltaxincluded: boolean\lvendornumber: character varying(32)\lcc: text\lbcc: text\lgifi_accno: character varying(30)\lbusiness_id: integer\ltaxnumber: character varying(32)\lsic_code: character varying(6)\ldiscount: numeric\lcreditlimit: numeric\liban: character varying(34)\lbic: character varying(11)\lemployee_id: integer\llanguage_code: character varying(6)\lpricegroup_id: integer\lcurr: character(3)\lstartdate: date\lenddate: date\l}" ]; +"vendor" [shape = record, label = "{<col0> \N| id: serial\lentity_id: integer\lterms: smallint\ltaxincluded: boolean\lvendornumber: character varying(32)\lcc: text\lbcc: text\lgifi_accno: character varying(30)\lbusiness_id: integer\ltaxnumber: character varying(32)\lsic_code: character varying(6)\ldiscount: numeric\lcreditlimit: numeric\liban: character varying(34)\lbic: character varying(11)\llanguage_code: character varying(6)\lpricegroup_id: integer\lcurr: character(3)\lstartdate: date\lenddate: date\l}" ]; "vendortax" [shape = record, label = "{<col0> \N| vendor_id: integer\lchart_id: integer\l}" ]; -"warehouse" [shape = record, label = "{<col0> \N| id: integer\ldescription: text\l}" ]; +"warehouse" [shape = record, label = "{<col0> \N| id: serial\ldescription: text\l}" ]; "yearend" [shape = record, label = "{<col0> \N| trans_id: integer\ltransdate: date\l}" ]; "acc_trans" -> "chart" [label="acc_trans_chart_id_fkey"]; +"ap" -> "entity" [label="ap_entity_id_fkey"]; +"ap" -> "person" [label="ap_person_id_fkey"]; +"ar" -> "entity" [label="ar_entity_id_fkey"]; +"ar" -> "person" [label="ar_person_id_fkey"]; +"audittrail" -> "person" [label="audittrail_person_id_fkey"]; +"company" -> "entity" [label="company_entity_id_fkey"]; +"company" -> "entity_class" [label="company_entity_class_id_fkey"]; +"company" -> "location" [label="company_primary_location_id_fkey"]; +"company_to_contact" -> "company" [label="company_to_contact_company_id_fkey"]; +"company_to_contact" -> "contact_class" [label="company_to_contact_contact_class_id_fkey"]; +"company_to_entity" -> "company" [label="company_to_entity_company_id_fkey"]; +"company_to_entity" -> "entity" [label="company_to_entity_entity_id_fkey"]; +"company_to_location" -> "location" [label="company_to_location_location_id_fkey"]; +"company_to_location" -> "company" [label="company_to_location_company_id_fkey"]; "custom_field_catalog" -> "custom_table_catalog" [label="custom_field_catalog_table_id_fkey"]; +"customer" -> "entity" [label="customer_entity_id_fkey"]; +"employee" -> "entity" [label="employee_entity_id_fkey"]; +"entity" -> "entity_class" [label="entity_entity_class_fkey"]; +"entity_class_to_entity" -> "entity_class" [label="entity_class_to_entity_entity_class_id_fkey"]; +"entity_class_to_entity" -> "entity" [label="entity_class_to_entity_entity_id_fkey"]; +"entity_other_name" -> "entity" [label="entity_other_name_entity_id_fkey"]; +"gl" -> "person" [label="gl_person_id_fkey"]; +"inventory" -> "person" [label="inventory_person_id_fkey"]; +"jcitems" -> "person" [label="jcitems_person_id_fkey"]; +"location" -> "country" [label="location_country_id_fkey"]; +"oe" -> "entity" [label="oe_entity_id_fkey"]; +"oe" -> "person" [label="oe_person_id_fkey"]; +"oe" -> "oe_class" [label="oe_oe_class_id_fkey"]; "partstax" -> "parts" [label="partstax_parts_id_fkey"]; "partstax" -> "chart" [label="partstax_chart_id_fkey"]; "partstax" -> "taxcategory" [label="partstax_taxcategory_id_fkey"]; +"partsvendor" -> "entity" [label="partsvendor_entity_id_fkey"]; +"person" -> "entity" [label="person_entity_id_fkey"]; +"person" -> "salutation" [label="person_salutation_id_fkey"]; +"person" -> "location" [label="person_primary_location_id_fkey"]; +"person_to_company" -> "location" [label="person_to_company_location_id_fkey"]; +"person_to_company" -> "person" [label="person_to_company_person_id_fkey"]; +"person_to_contact" -> "person" [label="person_to_contact_person_id_fkey"]; +"person_to_contact" -> "contact_class" [label="person_to_contact_contact_class_id_fkey"]; +"person_to_entity" -> "person" [label="person_to_entity_person_id_fkey"]; +"person_to_entity" -> "entity" [label="person_to_entity_entity_id_fkey"]; "tax" -> "chart" [label="tax_chart_id_fkey"]; "tax" -> "taxmodule" [label="tax_taxmodule_id_fkey"]; "taxcategory" -> "taxmodule" [label="taxcategory_taxmodule_id_fkey"]; +"vendor" -> "entity" [label="vendor_entity_id_fkey"]; } diff --git a/doc/database/ledgersmb.xml b/doc/database/ledgersmb.xml index 82672ad6..6fc88fa1 100644 --- a/doc/database/ledgersmb.xml +++ b/doc/database/ledgersmb.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8" ?> <!-- $Header: /cvsroot/autodoc/autodoc/xml.tmpl,v 1.2 2006/05/16 19:01:27 rbt Exp $ --> -<book id="database.ledgersmb" xreflabel="ledgersmb database schema"><title>ledgersmb Model</title> +<book id="database.lsmb13-new" xreflabel="lsmb13-new database schema"><title>lsmb13-new Model</title> @@ -297,7 +297,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -310,8 +310,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - @@ -356,7 +354,7 @@ </varlistentry> <varlistentry> - <term><structfield>vendor_id</structfield></term> + <term><structfield>entity_id</structfield></term> <listitem><para> <type>integer</type> @@ -366,6 +364,18 @@ + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> + + + </para> + + <para> + Used to be customer_id, but customer is now metadata. You need to push to entity </para> </listitem> @@ -536,7 +546,7 @@ </varlistentry> <varlistentry> - <term><structfield>employee_id</structfield></term> + <term><structfield>person_id</structfield></term> <listitem><para> <type>integer</type> @@ -546,6 +556,16 @@ + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.person"/> + + </para> </listitem> @@ -705,13 +725,6 @@ <title>Indexes on ap</title> <varlistentry> - <term>ap_employee_id_key</term> - <listitem><para>employee_id</para></listitem> - </varlistentry> - - - - <varlistentry> <term>ap_id_key</term> <listitem><para>id</para></listitem> </varlistentry> @@ -744,13 +757,6 @@ <listitem><para>transdate</para></listitem> </varlistentry> - - - <varlistentry> - <term>ap_vendor_id_key</term> - <listitem><para>vendor_id</para></listitem> - </varlistentry> - </variablelist> @@ -783,7 +789,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -796,8 +802,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - @@ -842,7 +846,7 @@ </varlistentry> <varlistentry> - <term><structfield>customer_id</structfield></term> + <term><structfield>entity_id</structfield></term> <listitem><para> <type>integer</type> @@ -852,6 +856,18 @@ + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> + + + </para> + + <para> + Used to be customer_id, but customer is now metadata. You need to push to entity </para> </listitem> @@ -1052,7 +1068,7 @@ </varlistentry> <varlistentry> - <term><structfield>employee_id</structfield></term> + <term><structfield>person_id</structfield></term> <listitem><para> <type>integer</type> @@ -1062,6 +1078,16 @@ + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.person"/> + + </para> </listitem> @@ -1189,20 +1215,6 @@ <title>Indexes on ar</title> <varlistentry> - <term>ar_customer_id_key</term> - <listitem><para>customer_id</para></listitem> - </varlistentry> - - - - <varlistentry> - <term>ar_employee_id_key</term> - <listitem><para>employee_id</para></listitem> - </varlistentry> - - - - <varlistentry> <term>ar_id_key</term> <listitem><para>id</para></listitem> </varlistentry> @@ -1504,7 +1516,7 @@ </varlistentry> <varlistentry> - <term><structfield>employee_id</structfield></term> + <term><structfield>person_id</structfield></term> <listitem><para> <type>integer</type> @@ -1514,6 +1526,16 @@ + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.person"/> + + </para> </listitem> @@ -1590,7 +1612,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -1603,8 +1625,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - @@ -1680,7 +1700,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -1693,8 +1713,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - @@ -1900,12 +1918,12 @@ </para> </section> - <section id="public.table.custom-field-catalog" - xreflabel="public.custom_field_catalog"> - <title id="public.table.custom-field-catalog-title"> + <section id="public.table.company" + xreflabel="public.company"> + <title id="public.table.company-title"> Table: - <structname>custom_field_catalog</structname> + <structname>company</structname> </title> @@ -1913,16 +1931,68 @@ <para> <variablelist> <title> - Structure of <structname>custom_field_catalog</structname> + Structure of <structname>company</structname> </title> <varlistentry> - <term><structfield>field_id</structfield></term> + <term><structfield>id</structfield></term> <listitem><para> <type>serial</type> + + + <literal>UNIQUE</literal> + + + + + <literal>NOT NULL</literal> + + + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>entity_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>legal_name</structfield></term> + <listitem><para> + <type>text</type> + + <literal>PRIMARY KEY</literal> @@ -1943,7 +2013,7 @@ </varlistentry> <varlistentry> - <term><structfield>table_id</structfield></term> + <term><structfield>entity_class_id</structfield></term> <listitem><para> <type>integer</type> @@ -1953,12 +2023,14 @@ + <literal>NOT NULL</literal> - <literal>REFERENCES</literal> <xref linkend="public.table.custom-table-catalog"/> + + <literal>REFERENCES</literal> <xref linkend="public.table.entity-class"/> </para> @@ -1967,7 +2039,44 @@ </varlistentry> <varlistentry> - <term><structfield>field_name</structfield></term> + <term><structfield>primary_location_id</structfield></term> + <listitem><para> + <type>integer</type> + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.location"/> + + + </para> + + <para> + This is the location that should show up by default for any forms + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>tax_id</structfield></term> <listitem><para> <type>text</type> @@ -1979,6 +2088,10 @@ </para> + <para> + In the US this would be a EIN. + </para> + </listitem> </varlistentry> @@ -1986,7 +2099,50 @@ + <variablelist> + <title>Constraints on company</title> + + <varlistentry> + <term>company_legal_name_check</term> + <listitem><para>CHECK ((legal_name ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + </variablelist> + + + + + + + + <itemizedlist> + <title> + Tables referencing company_to_contact via Foreign Key Constraints + </title> + + <listitem> + <para> + <xref linkend="public.table.company-to-contact"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.company-to-entity"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.company-to-location"/> + </para> + </listitem> + </itemizedlist> @@ -1996,27 +2152,35 @@ </para> </section> - <section id="public.table.custom-table-catalog" - xreflabel="public.custom_table_catalog"> - <title id="public.table.custom-table-catalog-title"> + <section id="public.table.company-to-contact" + xreflabel="public.company_to_contact"> + <title id="public.table.company-to-contact-title"> Table: - <structname>custom_table_catalog</structname> + <structname>company_to_contact</structname> </title> + <para> + To keep track of the relationship between multiple contact methods and a single company + </para> + <para> <variablelist> <title> - Structure of <structname>custom_table_catalog</structname> + Structure of <structname>company_to_contact</structname> </title> <varlistentry> - <term><structfield>table_id</structfield></term> + <term><structfield>company_id</structfield></term> <listitem><para> - <type>serial</type> + <type>integer</type> + + + + <literal>PRIMARY KEY</literal> @@ -2032,6 +2196,10 @@ + <literal>REFERENCES</literal> <xref linkend="public.table.company"/> + + + </para> @@ -2039,11 +2207,53 @@ </varlistentry> <varlistentry> - <term><structfield>extends</structfield></term> + <term><structfield>contact_class_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.contact-class"/> + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>contact</structfield></term> <listitem><para> <type>text</type> + <literal>PRIMARY KEY</literal> + + + + + + + + @@ -2054,8 +2264,117 @@ </listitem> </varlistentry> + </variablelist> + + + + <variablelist> + <title>Constraints on company_to_contact</title> + + <varlistentry> + <term>company_to_contact_contact_check</term> + <listitem><para>CHECK ((contact ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + </variablelist> + + + + + + + + + + + </para> + </section> + + <section id="public.table.company-to-entity" + xreflabel="public.company_to_entity"> + <title id="public.table.company-to-entity-title"> + Table: + + <structname>company_to_entity</structname> + </title> + + + + <para> + <variablelist> + <title> + Structure of <structname>company_to_entity</structname> + </title> + + <varlistentry> - <term><structfield>table_name</structfield></term> + <term><structfield>company_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.company"/> + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>entity_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>related_how</structfield></term> <listitem><para> <type>text</type> @@ -2070,26 +2389,43 @@ </listitem> </varlistentry> + <varlistentry> + <term><structfield>created</structfield></term> + <listitem><para> + <type>date</type> + + + + <literal>NOT NULL</literal> + + + + <literal>DEFAULT ('now'::text)::date</literal> + + + + </para> + + </listitem> + </varlistentry> + </variablelist> + <variablelist> + <title>Constraints on company_to_entity</title> + <varlistentry> + <term>company_to_entity_check</term> + <listitem><para>CHECK ((entity_id <> company_id))</para></listitem> + </varlistentry> + </variablelist> - <itemizedlist> - <title> - Tables referencing custom_field_catalog via Foreign Key Constraints - </title> - <listitem> - <para> - <xref linkend="public.table.custom-field-catalog"/> - </para> - </listitem> - </itemizedlist> @@ -2099,12 +2435,12 @@ </para> </section> - <section id="public.table.customer" - xreflabel="public.customer"> - <title id="public.table.customer-title"> + <section id="public.table.company-to-location" + xreflabel="public.company_to_location"> + <title id="public.table.company-to-location-title"> Table: - <structname>customer</structname> + <structname>company_to_location</structname> </title> @@ -2112,16 +2448,20 @@ <para> <variablelist> <title> - Structure of <structname>customer</structname> + Structure of <structname>company_to_location</structname> </title> <varlistentry> - <term><structfield>id</structfield></term> + <term><structfield>location_id</structfield></term> <listitem><para> <type>integer</type> + + + + <literal>PRIMARY KEY</literal> @@ -2132,10 +2472,12 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> + <literal>REFERENCES</literal> <xref linkend="public.table.location"/> + + </para> @@ -2144,14 +2486,31 @@ </varlistentry> <varlistentry> - <term><structfield>name</structfield></term> + <term><structfield>company_id</structfield></term> <listitem><para> - <type>character varying(64)</type> + <type>integer</type> + + + + + + + <literal>PRIMARY KEY</literal> + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.company"/> + + </para> @@ -2159,10 +2518,51 @@ </listitem> </varlistentry> + </variablelist> + + + + + + + + + + + </para> + </section> + + <section id="public.table.contact-class" + xreflabel="public.contact_class"> + <title id="public.table.contact-class-title"> + Table: + + <structname>contact_class</structname> + </title> + + + + <para> + <variablelist> + <title> + Structure of <structname>contact_class</structname> + </title> + + <varlistentry> - <term><structfield>address1</structfield></term> + <term><structfield>id</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>serial</type> + + + + + <literal>UNIQUE</literal> + + + + + <literal>NOT NULL</literal> @@ -2176,9 +2576,18 @@ </varlistentry> <varlistentry> - <term><structfield>address2</structfield></term> + <term><structfield>class</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>text</type> + + + <literal>PRIMARY KEY</literal> + + + + + + @@ -2191,10 +2600,85 @@ </listitem> </varlistentry> + </variablelist> + + + + <variablelist> + <title>Constraints on contact_class</title> + + <varlistentry> + <term>contact_class_class_check</term> + <listitem><para>CHECK (("class" ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + </variablelist> + + + + + + + + <itemizedlist> + <title> + Tables referencing company_to_contact via Foreign Key Constraints + </title> + + <listitem> + <para> + <xref linkend="public.table.company-to-contact"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.person-to-contact"/> + </para> + </listitem> + + </itemizedlist> + + + + + + + </para> + </section> + + <section id="public.table.country" + xreflabel="public.country"> + <title id="public.table.country-title"> + Table: + + <structname>country</structname> + </title> + + + + <para> + <variablelist> + <title> + Structure of <structname>country</structname> + </title> + + <varlistentry> - <term><structfield>city</structfield></term> + <term><structfield>id</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>serial</type> + + + <literal>PRIMARY KEY</literal> + + + + + + @@ -2208,12 +2692,14 @@ </varlistentry> <varlistentry> - <term><structfield>state</structfield></term> + <term><structfield>name</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>text</type> + <literal>NOT NULL</literal> + @@ -2224,12 +2710,14 @@ </varlistentry> <varlistentry> - <term><structfield>zipcode</structfield></term> + <term><structfield>short_name</structfield></term> <listitem><para> - <type>character varying(10)</type> + <type>text</type> + <literal>NOT NULL</literal> + @@ -2240,9 +2728,9 @@ </varlistentry> <varlistentry> - <term><structfield>country</structfield></term> + <term><structfield>itu</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>text</type> @@ -2252,13 +2740,91 @@ </para> + <para> + The ITU Telecommunication Standardization Sector code for calling internationally. For example, the US is 1, Great Britain is 44 + </para> + </listitem> </varlistentry> + </variablelist> + + + + <variablelist> + <title>Constraints on country</title> + + <varlistentry> + <term>country_name_check</term> + <listitem><para>CHECK ((name ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + + + <varlistentry> + <term>country_short_name_check</term> + <listitem><para>CHECK ((short_name ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + </variablelist> + + + + + + + + <itemizedlist> + <title> + Tables referencing location via Foreign Key Constraints + </title> + + <listitem> + <para> + <xref linkend="public.table.location"/> + </para> + </listitem> + + </itemizedlist> + + + + + + + </para> + </section> + + <section id="public.table.custom-field-catalog" + xreflabel="public.custom_field_catalog"> + <title id="public.table.custom-field-catalog-title"> + Table: + + <structname>custom_field_catalog</structname> + </title> + + + + <para> + <variablelist> + <title> + Structure of <structname>custom_field_catalog</structname> + </title> + + <varlistentry> - <term><structfield>contact</structfield></term> + <term><structfield>field_id</structfield></term> <listitem><para> - <type>character varying(64)</type> + <type>serial</type> + + + <literal>PRIMARY KEY</literal> + + + + + + @@ -2272,9 +2838,12 @@ </varlistentry> <varlistentry> - <term><structfield>phone</structfield></term> + <term><structfield>table_id</structfield></term> <listitem><para> - <type>character varying(20)</type> + <type>integer</type> + + + @@ -2282,15 +2851,76 @@ + + + <literal>REFERENCES</literal> <xref linkend="public.table.custom-table-catalog"/> + + </para> </listitem> </varlistentry> <varlistentry> - <term><structfield>fax</structfield></term> + <term><structfield>field_name</structfield></term> <listitem><para> - <type>character varying(20)</type> + <type>text</type> + + + + + + + + </para> + + </listitem> + </varlistentry> + + </variablelist> + + + + + + + + + + + </para> + </section> + + <section id="public.table.custom-table-catalog" + xreflabel="public.custom_table_catalog"> + <title id="public.table.custom-table-catalog-title"> + Table: + + <structname>custom_table_catalog</structname> + </title> + + + + <para> + <variablelist> + <title> + Structure of <structname>custom_table_catalog</structname> + </title> + + + <varlistentry> + <term><structfield>table_id</structfield></term> + <listitem><para> + <type>serial</type> + + + <literal>PRIMARY KEY</literal> + + + + + + @@ -2304,7 +2934,7 @@ </varlistentry> <varlistentry> - <term><structfield>email</structfield></term> + <term><structfield>extends</structfield></term> <listitem><para> <type>text</type> @@ -2320,7 +2950,7 @@ </varlistentry> <varlistentry> - <term><structfield>notes</structfield></term> + <term><structfield>table_name</structfield></term> <listitem><para> <type>text</type> @@ -2335,10 +2965,69 @@ </listitem> </varlistentry> + </variablelist> + + + + + + + + <itemizedlist> + <title> + Tables referencing custom_field_catalog via Foreign Key Constraints + </title> + + <listitem> + <para> + <xref linkend="public.table.custom-field-catalog"/> + </para> + </listitem> + + </itemizedlist> + + + + + + + </para> + </section> + + <section id="public.table.customer" + xreflabel="public.customer"> + <title id="public.table.customer-title"> + Table: + + <structname>customer</structname> + </title> + + + <para> + This is now a metadata table that holds information specific to customers. Source info is not part of the entity management + </para> + + + <para> + <variablelist> + <title> + Structure of <structname>customer</structname> + </title> + + <varlistentry> - <term><structfield>discount</structfield></term> + <term><structfield>id</structfield></term> <listitem><para> - <type>numeric</type> + <type>serial</type> + + + <literal>PRIMARY KEY</literal> + + + + + + @@ -2352,25 +3041,35 @@ </varlistentry> <varlistentry> - <term><structfield>taxincluded</structfield></term> + <term><structfield>entity_id</structfield></term> <listitem><para> - <type>boolean</type> + <type>integer</type> + + + + + + - <literal>DEFAULT false</literal> + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> </para> + <para> + This is the relationship between entities and customers + </para> + </listitem> </varlistentry> <varlistentry> - <term><structfield>creditlimit</structfield></term> + <term><structfield>discount</structfield></term> <listitem><para> <type>numeric</type> @@ -2386,14 +3085,16 @@ </varlistentry> <varlistentry> - <term><structfield>terms</structfield></term> + <term><structfield>taxincluded</structfield></term> <listitem><para> - <type>smallint</type> + <type>boolean</type> + <literal>DEFAULT false</literal> + </para> @@ -2402,9 +3103,9 @@ </varlistentry> <varlistentry> - <term><structfield>customernumber</structfield></term> + <term><structfield>creditlimit</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>numeric</type> @@ -2418,9 +3119,9 @@ </varlistentry> <varlistentry> - <term><structfield>cc</structfield></term> + <term><structfield>terms</structfield></term> <listitem><para> - <type>text</type> + <type>smallint</type> @@ -2434,9 +3135,9 @@ </varlistentry> <varlistentry> - <term><structfield>bcc</structfield></term> + <term><structfield>customernumber</structfield></term> <listitem><para> - <type>text</type> + <type>character varying(32)</type> @@ -2450,9 +3151,9 @@ </varlistentry> <varlistentry> - <term><structfield>business_id</structfield></term> + <term><structfield>cc</structfield></term> <listitem><para> - <type>integer</type> + <type>text</type> @@ -2466,9 +3167,9 @@ </varlistentry> <varlistentry> - <term><structfield>taxnumber</structfield></term> + <term><structfield>bcc</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>text</type> @@ -2482,9 +3183,9 @@ </varlistentry> <varlistentry> - <term><structfield>sic_code</structfield></term> + <term><structfield>business_id</structfield></term> <listitem><para> - <type>character varying(6)</type> + <type>integer</type> @@ -2498,9 +3199,9 @@ </varlistentry> <varlistentry> - <term><structfield>iban</structfield></term> + <term><structfield>sic_code</structfield></term> <listitem><para> - <type>character varying(34)</type> + <type>character varying(6)</type> @@ -2514,9 +3215,9 @@ </varlistentry> <varlistentry> - <term><structfield>bic</structfield></term> + <term><structfield>iban</structfield></term> <listitem><para> - <type>character varying(11)</type> + <type>character varying(34)</type> @@ -2530,9 +3231,9 @@ </varlistentry> <varlistentry> - <term><structfield>employee_id</structfield></term> + <term><structfield>bic</structfield></term> <listitem><para> - <type>integer</type> + <type>character varying(11)</type> @@ -2602,6 +3303,8 @@ + <literal>DEFAULT ('now'::text)::date</literal> + </para> @@ -2625,22 +3328,31 @@ </listitem> </varlistentry> - </variablelist> + <varlistentry> + <term><structfield>invoice_notes</structfield></term> + <listitem><para> + <type>text</type> - <variablelist> - <title>Indexes on customer</title> - <varlistentry> - <term>customer_contact_key</term> - <listitem><para>lower((contact)::text)</para></listitem> + + </para> + + </listitem> </varlistentry> + </variablelist> + + + + <variablelist> + <title>Indexes on customer</title> + <varlistentry> <term>customer_customernumber_key</term> <listitem><para>customernumber</para></listitem> @@ -2653,13 +3365,6 @@ <listitem><para>id</para></listitem> </varlistentry> - - - <varlistentry> - <term>customer_name_key</term> - <listitem><para>lower((name)::text)</para></listitem> - </varlistentry> - </variablelist> @@ -2857,7 +3562,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -2870,8 +3575,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - @@ -3022,6 +3725,10 @@ </title> + <para> + Is a metadata table specific to employees + </para> + <para> <variablelist> @@ -3033,7 +3740,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -3046,11 +3753,35 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>entity_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> + </para> @@ -3074,13 +3805,15 @@ </varlistentry> <varlistentry> - <term><structfield>name</structfield></term> + <term><structfield>startdate</structfield></term> <listitem><para> - <type>character varying(64)</type> + <type>date</type> + + <literal>DEFAULT ('now'::text)::date</literal> @@ -3090,9 +3823,9 @@ </varlistentry> <varlistentry> - <term><structfield>address1</structfield></term> + <term><structfield>enddate</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>date</type> @@ -3106,9 +3839,9 @@ </varlistentry> <varlistentry> - <term><structfield>address2</structfield></term> + <term><structfield>notes</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>text</type> @@ -3122,9 +3855,9 @@ </varlistentry> <varlistentry> - <term><structfield>city</structfield></term> + <term><structfield>role</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>character varying(20)</type> @@ -3138,14 +3871,16 @@ </varlistentry> <varlistentry> - <term><structfield>state</structfield></term> + <term><structfield>sales</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>boolean</type> + <literal>DEFAULT false</literal> + </para> @@ -3154,9 +3889,9 @@ </varlistentry> <varlistentry> - <term><structfield>zipcode</structfield></term> + <term><structfield>ssn</structfield></term> <listitem><para> - <type>character varying(10)</type> + <type>character varying(20)</type> @@ -3170,9 +3905,9 @@ </varlistentry> <varlistentry> - <term><structfield>country</structfield></term> + <term><structfield>iban</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>character varying(34)</type> @@ -3186,9 +3921,9 @@ </varlistentry> <varlistentry> - <term><structfield>workphone</structfield></term> + <term><structfield>bic</structfield></term> <listitem><para> - <type>character varying(20)</type> + <type>character varying(11)</type> @@ -3202,9 +3937,9 @@ </varlistentry> <varlistentry> - <term><structfield>homephone</structfield></term> + <term><structfield>managerid</structfield></term> <listitem><para> - <type>character varying(20)</type> + <type>integer</type> @@ -3218,16 +3953,14 @@ </varlistentry> <varlistentry> - <term><structfield>startdate</structfield></term> + <term><structfield>employeenumber</structfield></term> <listitem><para> - <type>date</type> + <type>character varying(32)</type> - <literal>DEFAULT ('now'::text)::date</literal> - </para> @@ -3236,7 +3969,7 @@ </varlistentry> <varlistentry> - <term><structfield>enddate</structfield></term> + <term><structfield>dob</structfield></term> <listitem><para> <type>date</type> @@ -3251,10 +3984,54 @@ </listitem> </varlistentry> + </variablelist> + + + + + + + + + + + </para> + </section> + + <section id="public.table.entity" + xreflabel="public.entity"> + <title id="public.table.entity-title"> + Table: + + <structname>entity</structname> + </title> + + + <para> + The primary entity table to map to all contacts + </para> + + + <para> + <variablelist> + <title> + Structure of <structname>entity</structname> + </title> + + <varlistentry> - <term><structfield>notes</structfield></term> + <term><structfield>id</structfield></term> <listitem><para> - <type>text</type> + <type>serial</type> + + + <literal>PRIMARY KEY</literal> + + + + + + @@ -3268,43 +4045,219 @@ </varlistentry> <varlistentry> - <term><structfield>role</structfield></term> + <term><structfield>name</structfield></term> <listitem><para> - <type>character varying(20)</type> + <type>text</type> + + </para> + <para> + This is the common name of an entity. If it was a person it may be Joshua Drake, a company Acme Corp. You may also choose to use a domain such as commandprompt.com </para> </listitem> </varlistentry> <varlistentry> - <term><structfield>sales</structfield></term> + <term><structfield>entity_class</structfield></term> <listitem><para> - <type>boolean</type> + <type>integer</type> - <literal>DEFAULT false</literal> + + + <literal>NOT NULL</literal> + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity-class"/> + + </para> </listitem> </varlistentry> + </variablelist> + + + + <variablelist> + <title>Constraints on entity</title> + + <varlistentry> + <term>entity_name_check</term> + <listitem><para>CHECK ((name ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + </variablelist> + + + + + + + + <itemizedlist> + <title> + Tables referencing ap via Foreign Key Constraints + </title> + + <listitem> + <para> + <xref linkend="public.table.ap"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.ar"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.company"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.company-to-entity"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.customer"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.employee"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.entity-class-to-entity"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.entity-other-name"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.oe"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.partsvendor"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.person"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.person-to-entity"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.vendor"/> + </para> + </listitem> + + </itemizedlist> + + + + + + + </para> + </section> + + <section id="public.table.entity-class" + xreflabel="public.entity_class"> + <title id="public.table.entity-class-title"> + Table: + + <structname>entity_class</structname> + </title> + + + <para> + Defines the class type such as vendor, customer, contact, employee + </para> + + + <para> + <variablelist> + <title> + Structure of <structname>entity_class</structname> + </title> + + <varlistentry> - <term><structfield>email</structfield></term> + <term><structfield>id</structfield></term> <listitem><para> - <type>text</type> + <type>serial</type> + + + <literal>PRIMARY KEY</literal> + + + @@ -3312,18 +4265,27 @@ + + + + </para> + + <para> + The first 7 values are reserved and permanent </para> </listitem> </varlistentry> <varlistentry> - <term><structfield>ssn</structfield></term> + <term><structfield>class</structfield></term> <listitem><para> - <type>character varying(20)</type> + <type>text</type> + <literal>NOT NULL</literal> + @@ -3334,13 +4296,17 @@ </varlistentry> <varlistentry> - <term><structfield>iban</structfield></term> + <term><structfield>active</structfield></term> <listitem><para> - <type>character varying(34)</type> + <type>boolean</type> + + + <literal>NOT NULL</literal> + <literal>DEFAULT true</literal> @@ -3349,14 +4315,109 @@ </listitem> </varlistentry> + </variablelist> + + + + <variablelist> + <title>Constraints on entity_class</title> + + <varlistentry> + <term>entity_class_class_check</term> + <listitem><para>CHECK (("class" ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + </variablelist> + + + + + + + + <itemizedlist> + <title> + Tables referencing company via Foreign Key Constraints + </title> + + <listitem> + <para> + <xref linkend="public.table.company"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.entity"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.entity-class-to-entity"/> + </para> + </listitem> + + </itemizedlist> + + + + + + + </para> + </section> + + <section id="public.table.entity-class-to-entity" + xreflabel="public.entity_class_to_entity"> + <title id="public.table.entity-class-to-entity-title"> + Table: + + <structname>entity_class_to_entity</structname> + </title> + + + <para> + Relation builder for classes to entity + </para> + + + <para> + <variablelist> + <title> + Structure of <structname>entity_class_to_entity</structname> + </title> + + <varlistentry> - <term><structfield>bic</structfield></term> + <term><structfield>entity_class_id</structfield></term> <listitem><para> - <type>character varying(11)</type> + <type>integer</type> + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity-class"/> + @@ -3366,7 +4427,7 @@ </varlistentry> <varlistentry> - <term><structfield>managerid</structfield></term> + <term><structfield>entity_id</structfield></term> <listitem><para> <type>integer</type> @@ -3375,22 +4436,91 @@ + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> + + + </para> </listitem> </varlistentry> + </variablelist> + + + + + + + + + + + </para> + </section> + + <section id="public.table.entity-other-name" + xreflabel="public.entity_other_name"> + <title id="public.table.entity-other-name-title"> + Table: + + <structname>entity_other_name</structname> + </title> + + + <para> + Similar to company_other_name, a person may be jd, Joshua Drake, linuxpoet... all are the same person. + </para> + + + <para> + <variablelist> + <title> + Structure of <structname>entity_other_name</structname> + </title> + + <varlistentry> - <term><structfield>employeenumber</structfield></term> + <term><structfield>entity_id</structfield></term> <listitem><para> - <type>character varying(32)</type> + <type>integer</type> + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> + + + </para> @@ -3398,40 +4528,40 @@ </varlistentry> <varlistentry> - <term><structfield>dob</structfield></term> + <term><structfield>other_name</structfield></term> <listitem><para> - <type>date</type> + <type>text</type> + <literal>PRIMARY KEY</literal> - </para> - </listitem> - </varlistentry> - </variablelist> - <variablelist> - <title>Indexes on employee</title> - <varlistentry> - <term>employee_id_key</term> - <listitem><para>id</para></listitem> + </para> + + </listitem> </varlistentry> + </variablelist> + + + <variablelist> + <title>Constraints on entity_other_name</title> <varlistentry> - <term>employee_name_key</term> - <listitem><para>lower((name)::text)</para></listitem> + <term>entity_other_name_other_name_check</term> + <listitem><para>CHECK ((other_name ~ '[[:alnum:]_]'::text))</para></listitem> </varlistentry> </variablelist> @@ -3443,6 +4573,8 @@ + + </para> </section> @@ -3663,7 +4795,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -3676,8 +4808,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - @@ -3738,7 +4868,7 @@ </varlistentry> <varlistentry> - <term><structfield>employee_id</structfield></term> + <term><structfield>person_id</structfield></term> <listitem><para> <type>integer</type> @@ -3748,6 +4878,14 @@ + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.person"/> + + </para> </listitem> @@ -3802,13 +4940,6 @@ <varlistentry> - <term>gl_employee_id_key</term> - <listitem><para>employee_id</para></listitem> - </varlistentry> - - - - <varlistentry> <term>gl_id_key</term> <listitem><para>id</para></listitem> </varlistentry> @@ -3953,7 +5084,7 @@ </varlistentry> <varlistentry> - <term><structfield>employee_id</structfield></term> + <term><structfield>person_id</structfield></term> <listitem><para> <type>integer</type> @@ -3963,6 +5094,16 @@ + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.person"/> + + </para> </listitem> @@ -4027,7 +5168,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -4040,8 +5181,6 @@ - <literal>DEFAULT nextval('invoiceid'::regclass)</literal> - @@ -4330,7 +5469,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -4343,8 +5482,6 @@ - <literal>DEFAULT nextval('jcitemsid'::regclass)</literal> - @@ -4515,7 +5652,7 @@ </varlistentry> <varlistentry> - <term><structfield>employee_id</structfield></term> + <term><structfield>person_id</structfield></term> <listitem><para> <type>integer</type> @@ -4525,6 +5662,16 @@ + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.person"/> + + </para> </listitem> @@ -4644,6 +5791,239 @@ </para> </section> + <section id="public.table.location" + xreflabel="public.location"> + <title id="public.table.location-title"> + Table: + + <structname>location</structname> + </title> + + + + <para> + <variablelist> + <title> + Structure of <structname>location</structname> + </title> + + + <varlistentry> + <term><structfield>id</structfield></term> + <listitem><para> + <type>serial</type> + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>line_one</structfield></term> + <listitem><para> + <type>text</type> + + + + <literal>NOT NULL</literal> + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>line_two</structfield></term> + <listitem><para> + <type>text</type> + + + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>line_three</structfield></term> + <listitem><para> + <type>text</type> + + + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>city_province</structfield></term> + <listitem><para> + <type>text</type> + + + + <literal>NOT NULL</literal> + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>country_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.country"/> + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>mail_code</structfield></term> + <listitem><para> + <type>text</type> + + + + <literal>NOT NULL</literal> + + + + + + </para> + + </listitem> + </varlistentry> + + </variablelist> + + + + <variablelist> + <title>Constraints on location</title> + + <varlistentry> + <term>location_city_province_check</term> + <listitem><para>CHECK ((city_province ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + + + <varlistentry> + <term>location_line_one_check</term> + <listitem><para>CHECK ((line_one ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + + + <varlistentry> + <term>location_mail_code_check</term> + <listitem><para>CHECK ((mail_code ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + </variablelist> + + + + + + + + <itemizedlist> + <title> + Tables referencing company via Foreign Key Constraints + </title> + + <listitem> + <para> + <xref linkend="public.table.company"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.company-to-location"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.person"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.person-to-company"/> + </para> + </listitem> + + </itemizedlist> + + + + + + + </para> + </section> + <section id="public.table.makemodel" xreflabel="public.makemodel"> <title id="public.table.makemodel-title"> @@ -4778,7 +6158,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -4791,8 +6171,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - @@ -4837,7 +6215,7 @@ </varlistentry> <varlistentry> - <term><structfield>vendor_id</structfield></term> + <term><structfield>entity_id</structfield></term> <listitem><para> <type>integer</type> @@ -4847,20 +6225,14 @@ - </para> + <literal>NOT NULL</literal> - </listitem> - </varlistentry> - - <varlistentry> - <term><structfield>customer_id</structfield></term> - <listitem><para> - <type>integer</type> + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> </para> @@ -4981,7 +6353,7 @@ </varlistentry> <varlistentry> - <term><structfield>employee_id</structfield></term> + <term><structfield>person_id</structfield></term> <listitem><para> <type>integer</type> @@ -4991,6 +6363,16 @@ + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.person"/> + + </para> </listitem> @@ -5144,22 +6526,41 @@ </listitem> </varlistentry> - </variablelist> + <varlistentry> + <term><structfield>oe_class_id</structfield></term> + <listitem><para> + <type>integer</type> - <variablelist> - <title>Indexes on oe</title> - <varlistentry> - <term>oe_employee_id_key</term> - <listitem><para>employee_id</para></listitem> + + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.oe-class"/> + + + </para> + + </listitem> </varlistentry> + </variablelist> + + + + <variablelist> + <title>Indexes on oe</title> + <varlistentry> <term>oe_id_key</term> <listitem><para>id</para></listitem> @@ -5191,6 +6592,117 @@ </para> </section> + <section id="public.table.oe-class" + xreflabel="public.oe_class"> + <title id="public.table.oe-class-title"> + Table: + + <structname>oe_class</structname> + </title> + + + <para> + This could probably be done better. But I need to remove the customer_id/vendor_id relationship and instead rely on a classification + </para> + + + <para> + <variablelist> + <title> + Structure of <structname>oe_class</structname> + </title> + + + <varlistentry> + <term><structfield>id</structfield></term> + <listitem><para> + <type>smallint</type> + + + + + <literal>UNIQUE</literal> + + + + + + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>oe_class</structfield></term> + <listitem><para> + <type>text</type> + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + + </para> + + </listitem> + </varlistentry> + + </variablelist> + + + + <variablelist> + <title>Constraints on oe_class</title> + + <varlistentry> + <term>oe_class_id_check</term> + <listitem><para>CHECK (((id = 1) OR (id = 2)))</para></listitem> + </varlistentry> + + </variablelist> + + + + + + + + <itemizedlist> + <title> + Tables referencing oe via Foreign Key Constraints + </title> + + <listitem> + <para> + <xref linkend="public.table.oe"/> + </para> + </listitem> + + </itemizedlist> + + + + + + + </para> + </section> + <section id="public.table.orderitems" xreflabel="public.orderitems"> <title id="public.table.orderitems-title"> @@ -5211,7 +6723,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -5224,8 +6736,6 @@ - <literal>DEFAULT nextval('orderitemsid'::regclass)</literal> - @@ -5480,7 +6990,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -5493,8 +7003,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - @@ -6191,7 +7699,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -6204,8 +7712,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - @@ -6408,7 +7914,7 @@ <varlistentry> - <term><structfield>vendor_id</structfield></term> + <term><structfield>entity_id</structfield></term> <listitem><para> <type>integer</type> @@ -6418,6 +7924,16 @@ + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> + + </para> </listitem> @@ -6542,11 +8058,207 @@ <listitem><para>parts_id</para></listitem> </varlistentry> + </variablelist> + + + + + + + + + </para> + </section> + + <section id="public.table.person" + xreflabel="public.person"> + <title id="public.table.person-title"> + Table: + + <structname>person</structname> + </title> + + + <para> + Every person, must have an entity to derive a common or display name. The correct way to get class information on a person would be person.entity_id->entity_class_to_entity.entity_id. + </para> + + + <para> + <variablelist> + <title> + Structure of <structname>person</structname> + </title> + + + <varlistentry> + <term><structfield>id</structfield></term> + <listitem><para> + <type>serial</type> + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>entity_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + + <literal>NOT NULL</literal> + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>salutation_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.salutation"/> + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>first_name</structfield></term> + <listitem><para> + <type>text</type> + + + + <literal>NOT NULL</literal> + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>middle_name</structfield></term> + <listitem><para> + <type>text</type> + + + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>last_name</structfield></term> + <listitem><para> + <type>text</type> + + + <literal>NOT NULL</literal> + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>primary_location_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.location"/> + + + </para> + + </listitem> + </varlistentry> + + </variablelist> + + + + <variablelist> + <title>Constraints on person</title> <varlistentry> - <term>partsvendor_vendor_id_key</term> - <listitem><para>vendor_id</para></listitem> + <term>person_first_name_check</term> + <listitem><para>CHECK ((first_name ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + + + <varlistentry> + <term>person_last_name_check</term> + <listitem><para>CHECK ((last_name ~ '[[:alnum:]_]'::text))</para></listitem> </varlistentry> </variablelist> @@ -6557,6 +8269,475 @@ + <itemizedlist> + <title> + Tables referencing ap via Foreign Key Constraints + </title> + + <listitem> + <para> + <xref linkend="public.table.ap"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.ar"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.audittrail"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.gl"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.inventory"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.jcitems"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.oe"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.person-to-company"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.person-to-contact"/> + </para> + </listitem> + + + + <listitem> + <para> + <xref linkend="public.table.person-to-entity"/> + </para> + </listitem> + + </itemizedlist> + + + + + + + </para> + </section> + + <section id="public.table.person-to-company" + xreflabel="public.person_to_company"> + <title id="public.table.person-to-company-title"> + Table: + + <structname>person_to_company</structname> + </title> + + + + <para> + <variablelist> + <title> + Structure of <structname>person_to_company</structname> + </title> + + + <varlistentry> + <term><structfield>location_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.location"/> + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>person_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.person"/> + + + + + </para> + + </listitem> + </varlistentry> + + </variablelist> + + + + + + + + + + + </para> + </section> + + <section id="public.table.person-to-contact" + xreflabel="public.person_to_contact"> + <title id="public.table.person-to-contact-title"> + Table: + + <structname>person_to_contact</structname> + </title> + + + <para> + To keep track of the relationship between multiple contact methods and a single individual + </para> + + + <para> + <variablelist> + <title> + Structure of <structname>person_to_contact</structname> + </title> + + + <varlistentry> + <term><structfield>person_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.person"/> + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>contact_class_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.contact-class"/> + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>contact</structfield></term> + <listitem><para> + <type>text</type> + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + + </para> + + </listitem> + </varlistentry> + + </variablelist> + + + + <variablelist> + <title>Constraints on person_to_contact</title> + + <varlistentry> + <term>person_to_contact_contact_check</term> + <listitem><para>CHECK ((contact ~ '[[:alnum:]_]'::text))</para></listitem> + </varlistentry> + + </variablelist> + + + + + + + + + + + </para> + </section> + + <section id="public.table.person-to-entity" + xreflabel="public.person_to_entity"> + <title id="public.table.person-to-entity-title"> + Table: + + <structname>person_to_entity</structname> + </title> + + + + <para> + <variablelist> + <title> + Structure of <structname>person_to_entity</structname> + </title> + + + <varlistentry> + <term><structfield>person_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.person"/> + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>entity_id</structfield></term> + <listitem><para> + <type>integer</type> + + + + + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>related_how</structfield></term> + <listitem><para> + <type>text</type> + + + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>created</structfield></term> + <listitem><para> + <type>date</type> + + + + <literal>NOT NULL</literal> + + + + <literal>DEFAULT ('now'::text)::date</literal> + + + + </para> + + </listitem> + </varlistentry> + + </variablelist> + + + + <variablelist> + <title>Constraints on person_to_entity</title> + + <varlistentry> + <term>person_to_entity_check</term> + <listitem><para>CHECK ((entity_id <> person_id))</para></listitem> + </varlistentry> + + </variablelist> + + + + + + + + + </para> </section> @@ -6581,7 +8762,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -6594,8 +8775,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - @@ -6674,7 +8853,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -6687,8 +8866,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - @@ -7246,6 +9423,103 @@ </para> </section> + <section id="public.table.salutation" + xreflabel="public.salutation"> + <title id="public.table.salutation-title"> + Table: + + <structname>salutation</structname> + </title> + + + + <para> + <variablelist> + <title> + Structure of <structname>salutation</structname> + </title> + + + <varlistentry> + <term><structfield>id</structfield></term> + <listitem><para> + <type>serial</type> + + + + + <literal>UNIQUE</literal> + + + + + <literal>NOT NULL</literal> + + + + + + + + </para> + + </listitem> + </varlistentry> + + <varlistentry> + <term><structfield>salutation</structfield></term> + <listitem><para> + <type>text</type> + + + <literal>PRIMARY KEY</literal> + + + + + + + + + + + + + + </para> + + </listitem> + </varlistentry> + + </variablelist> + + + + + + + + <itemizedlist> + <title> + Tables referencing person via Foreign Key Constraints + </title> + + <listitem> + <para> + <xref linkend="public.table.person"/> + </para> + </listitem> + + </itemizedlist> + + + + + + + </para> + </section> + <section id="public.table.shipto" xreflabel="public.shipto"> <title id="public.table.shipto-title"> @@ -8290,6 +10564,10 @@ </title> + <para> + Now a meta data table + </para> + <para> <variablelist> @@ -8301,7 +10579,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -8314,104 +10592,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - - - - - - </para> - - </listitem> - </varlistentry> - - <varlistentry> - <term><structfield>name</structfield></term> - <listitem><para> - <type>character varying(64)</type> - - - - - - - - </para> - - </listitem> - </varlistentry> - - <varlistentry> - <term><structfield>address1</structfield></term> - <listitem><para> - <type>character varying(32)</type> - - - - - - - - </para> - - </listitem> - </varlistentry> - - <varlistentry> - <term><structfield>address2</structfield></term> - <listitem><para> - <type>character varying(32)</type> - - - - - - - - </para> - - </listitem> - </varlistentry> - - <varlistentry> - <term><structfield>city</structfield></term> - <listitem><para> - <type>character varying(32)</type> - - - - - - - - </para> - - </listitem> - </varlistentry> - - <varlistentry> - <term><structfield>state</structfield></term> - <listitem><para> - <type>character varying(32)</type> - - - - - - - - </para> - - </listitem> - </varlistentry> - - <varlistentry> - <term><structfield>zipcode</structfield></term> - <listitem><para> - <type>character varying(10)</type> - - - @@ -8422,57 +10602,9 @@ </varlistentry> <varlistentry> - <term><structfield>country</structfield></term> + <term><structfield>entity_id</structfield></term> <listitem><para> - <type>character varying(32)</type> - - - - - - - - </para> - - </listitem> - </varlistentry> - - <varlistentry> - <term><structfield>contact</structfield></term> - <listitem><para> - <type>character varying(64)</type> - - - - - - - - </para> - - </listitem> - </varlistentry> - - <varlistentry> - <term><structfield>phone</structfield></term> - <listitem><para> - <type>character varying(20)</type> - - - - - - - - </para> - - </listitem> - </varlistentry> - - <varlistentry> - <term><structfield>fax</structfield></term> - <listitem><para> - <type>character varying(20)</type> + <type>integer</type> @@ -8480,36 +10612,14 @@ - </para> - - </listitem> - </varlistentry> + <literal>NOT NULL</literal> - <varlistentry> - <term><structfield>email</structfield></term> - <listitem><para> - <type>text</type> - - - - - - - - </para> - - </listitem> - </varlistentry> - - <varlistentry> - <term><structfield>notes</structfield></term> - <listitem><para> - <type>text</type> + <literal>REFERENCES</literal> <xref linkend="public.table.entity"/> </para> @@ -8728,22 +10838,6 @@ </varlistentry> <varlistentry> - <term><structfield>employee_id</structfield></term> - <listitem><para> - <type>integer</type> - - - - - - - - </para> - - </listitem> - </varlistentry> - - <varlistentry> <term><structfield>language_code</structfield></term> <listitem><para> <type>character varying(6)</type> @@ -8833,13 +10927,6 @@ <title>Indexes on vendor</title> <varlistentry> - <term>vendor_contact_key</term> - <listitem><para>lower((contact)::text)</para></listitem> - </varlistentry> - - - - <varlistentry> <term>vendor_id_key</term> <listitem><para>id</para></listitem> </varlistentry> @@ -8847,13 +10934,6 @@ <varlistentry> - <term>vendor_name_key</term> - <listitem><para>lower((name)::text)</para></listitem> - </varlistentry> - - - - <varlistentry> <term>vendor_vendornumber_key</term> <listitem><para>vendornumber</para></listitem> </varlistentry> @@ -8943,18 +11023,6 @@ - <variablelist> - <title>Indexes on vendortax</title> - - <varlistentry> - <term>vendortax_vendor_id_key</term> - <listitem><para>vendor_id</para></listitem> - </varlistentry> - - </variablelist> - - - @@ -8983,7 +11051,7 @@ <varlistentry> <term><structfield>id</structfield></term> <listitem><para> - <type>integer</type> + <type>serial</type> <literal>PRIMARY KEY</literal> @@ -8996,8 +11064,6 @@ - <literal>DEFAULT nextval('id'::regclass)</literal> - diff --git a/doc/database/ledgersmb.zigzag.dia b/doc/database/ledgersmb.zigzag.dia index 51ead1b9..d121f1e5 100644 --- a/doc/database/ledgersmb.zigzag.dia +++ b/doc/database/ledgersmb.zigzag.dia @@ -457,11 +457,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -523,7 +523,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># vendor_id#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -776,7 +776,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -1113,11 +1113,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -1179,7 +1179,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># customer_id#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -1478,7 +1478,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -2123,7 +2123,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -2276,11 +2276,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -2449,11 +2449,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -2658,7 +2658,7 @@ <dia:real val="6.6000000000000005"/> </dia:attribute> <dia:attribute name="name"> - <dia:string>#custom_field_catalog#</dia:string> + <dia:string>#company#</dia:string> </dia:attribute> <dia:attribute name="comment"> @@ -2734,7 +2734,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># field_id#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#serial#</dia:string> @@ -2757,7 +2757,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># table_id#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -2780,7 +2780,76 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># field_name#</dia:string> + <dia:string># legal_name#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># entity_class_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># primary_location_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># tax_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -2804,9 +2873,42 @@ </dia:attribute> <dia:attribute name="visible_operations"> - <dia:boolean val="false"/> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#company_legal_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((legal_name ~ '[[:alnum ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + </dia:attribute> - <dia:attribute name="operations"/> <dia:attribute name="template"> <dia:boolean val="false"/> @@ -2831,11 +2933,11 @@ <dia:real val="6.6000000000000005"/> </dia:attribute> <dia:attribute name="name"> - <dia:string>#custom_table_catalog#</dia:string> + <dia:string>#company_to_contact#</dia:string> </dia:attribute> <dia:attribute name="comment"> - <dia:string>##</dia:string> + <dia:string># To keep track of the relationship ... pany #</dia:string> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> @@ -2907,10 +3009,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># table_id#</dia:string> + <dia:string># company_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#serial#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -2930,10 +3032,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># extends#</dia:string> + <dia:string># contact_class_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -2953,7 +3055,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># table_name#</dia:string> + <dia:string># contact#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -2977,9 +3079,42 @@ </dia:attribute> <dia:attribute name="visible_operations"> - <dia:boolean val="false"/> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#company_to_contact_contact_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((contact ~ '[[:alnum:]_ ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + </dia:attribute> - <dia:attribute name="operations"/> <dia:attribute name="template"> <dia:boolean val="false"/> @@ -3004,7 +3139,7 @@ <dia:real val="6.6000000000000005"/> </dia:attribute> <dia:attribute name="name"> - <dia:string>#customer#</dia:string> + <dia:string>#company_to_entity#</dia:string> </dia:attribute> <dia:attribute name="comment"> @@ -3080,14 +3215,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># id#</dia:string> + <dia:string># company_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -3103,10 +3238,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># name#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(64)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3126,10 +3261,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># address1#</dia:string> + <dia:string># related_how#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3149,14 +3284,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># address2#</dia:string> + <dia:string># created#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#date#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string/> + <dia:string>#('now'::text)::date#</dia:string> </dia:attribute> <dia:attribute name="visibility"> @@ -3170,12 +3305,149 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#company_to_entity_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((entity_id <> company_id))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O11"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#company_to_location#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># city#</dia:string> + <dia:string># location_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3195,10 +3467,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># state#</dia:string> + <dia:string># company_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3216,12 +3488,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O12"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#contact_class#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># zipcode#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(10)#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3241,10 +3617,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># country#</dia:string> + <dia:string># class#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3262,12 +3638,149 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#contact_class_class_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK (("class" ~ '[[:alnum:]_ ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O13"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#country#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># contact#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(64)#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3287,10 +3800,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># phone#</dia:string> + <dia:string># name#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3310,10 +3823,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># fax#</dia:string> + <dia:string># short_name#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3333,7 +3846,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># email#</dia:string> + <dia:string># itu#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -3354,9 +3867,223 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#country_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((name ~ '[[:alnum:]_]'::text))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#country_short_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((short_name ~ '[[:alnum ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O14"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#custom_field_catalog#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># notes#</dia:string> + <dia:string># field_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#serial#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># table_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># field_name#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -3377,12 +4104,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O15"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#custom_table_catalog#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># discount#</dia:string> + <dia:string># table_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#numeric#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3402,14 +4233,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># taxincluded#</dia:string> + <dia:string># extends#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#boolean#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#false#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -3425,10 +4256,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># creditlimit#</dia:string> + <dia:string># table_name#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#numeric#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3446,12 +4277,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O16"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#customer#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># This is now a metadata table that ... ment #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># terms#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#smallint#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3471,10 +4406,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># customernumber#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3494,10 +4429,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># cc#</dia:string> + <dia:string># discount#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#numeric#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3517,10 +4452,33 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># bcc#</dia:string> + <dia:string># taxincluded#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#boolean#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string>#false#</dia:string> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># creditlimit#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#numeric#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3540,10 +4498,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># business_id#</dia:string> + <dia:string># terms#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#smallint#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3563,7 +4521,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># taxnumber#</dia:string> + <dia:string># customernumber#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#character varying(32)#</dia:string> @@ -3586,10 +4544,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># sic_code#</dia:string> + <dia:string># cc#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(6)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3609,10 +4567,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># iban#</dia:string> + <dia:string># bcc#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(34)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3632,10 +4590,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># bic#</dia:string> + <dia:string># business_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(11)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3655,10 +4613,56 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># sic_code#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#character varying(6)#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># iban#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#character varying(34)#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># bic#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#character varying(11)#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -3754,7 +4758,7 @@ </dia:attribute> <dia:attribute name="value"> - <dia:string/> + <dia:string>#('now'::text)::date#</dia:string> </dia:attribute> <dia:attribute name="visibility"> @@ -3791,6 +4795,29 @@ </dia:attribute> </dia:composite> + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># invoice_notes#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + </dia:attribute> <dia:attribute name="visible_operations"> @@ -3804,7 +4831,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O11"> + <dia:object type="UML - Class" version="0" id="O17"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -3954,7 +4981,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O12"> + <dia:object type="UML - Class" version="0" id="O18"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -4104,7 +5131,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O13"> + <dia:object type="UML - Class" version="0" id="O19"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -4200,11 +5227,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -4277,7 +5304,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O14"> + <dia:object type="UML - Class" version="0" id="O20"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -4427,7 +5454,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O15"> + <dia:object type="UML - Class" version="0" id="O21"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -4448,7 +5475,7 @@ </dia:attribute> <dia:attribute name="comment"> - <dia:string>##</dia:string> + <dia:string># Is a metadata table specific to employees #</dia:string> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> @@ -4523,11 +5550,34 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> + <dia:string>#serial#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># entity_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -4566,14 +5616,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># name#</dia:string> + <dia:string># startdate#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(64)#</dia:string> + <dia:string>#date#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string/> + <dia:string>#('now'::text)::date#</dia:string> </dia:attribute> <dia:attribute name="visibility"> @@ -4589,10 +5639,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># address1#</dia:string> + <dia:string># enddate#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#date#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4612,10 +5662,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># address2#</dia:string> + <dia:string># notes#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4635,10 +5685,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># city#</dia:string> + <dia:string># role#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#character varying(20)#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4658,14 +5708,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># state#</dia:string> + <dia:string># sales#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#boolean#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string/> + <dia:string>#false#</dia:string> </dia:attribute> <dia:attribute name="visibility"> @@ -4681,10 +5731,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># zipcode#</dia:string> + <dia:string># ssn#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(10)#</dia:string> + <dia:string>#character varying(20)#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4704,10 +5754,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># country#</dia:string> + <dia:string># iban#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#character varying(34)#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4727,10 +5777,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># workphone#</dia:string> + <dia:string># bic#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#character varying(11)#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4750,10 +5800,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># homephone#</dia:string> + <dia:string># managerid#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4773,14 +5823,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># startdate#</dia:string> + <dia:string># employeenumber#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#date#</dia:string> + <dia:string>#character varying(32)#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#('now'::text)::date#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -4796,7 +5846,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># enddate#</dia:string> + <dia:string># dob#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#date#</dia:string> @@ -4817,12 +5867,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O22"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># The primary entity table to map to ... acts #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># notes#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4842,10 +5996,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># role#</dia:string> + <dia:string># name#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4865,14 +6019,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># sales#</dia:string> + <dia:string># entity_class#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#boolean#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#false#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -4886,12 +6040,149 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#entity_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((name ~ '[[:alnum:]_]'::text))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O23"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity_class#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># Defines the class type such as ven ... oyee #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># email#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4911,10 +6202,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># ssn#</dia:string> + <dia:string># class#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4934,15 +6225,37 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># iban#</dia:string> + <dia:string># active#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(34)#</dia:string> + <dia:string>#boolean#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string/> + <dia:string>#true#</dia:string> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#entity_class_class_check#</dia:string> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="3"/> @@ -4953,14 +6266,129 @@ <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK (("class" ~ '[[:alnum:]_ ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O24"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity_class_to_entity#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># Relation builder for classes to entity #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># bic#</dia:string> + <dia:string># entity_class_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(11)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -4980,7 +6408,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># managerid#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -5001,12 +6429,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O25"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity_other_name#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># Similar to company_other_name, a p ... son. #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employeenumber#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -5026,10 +6558,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># dob#</dia:string> + <dia:string># other_name#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#date#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -5050,9 +6582,42 @@ </dia:attribute> <dia:attribute name="visible_operations"> - <dia:boolean val="false"/> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#entity_other_name_other_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((other_name ~ '[[:alnum ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + </dia:attribute> - <dia:attribute name="operations"/> <dia:attribute name="template"> <dia:boolean val="false"/> @@ -5060,7 +6625,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O16"> + <dia:object type="UML - Class" version="0" id="O26"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -5256,7 +6821,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O17"> + <dia:object type="UML - Class" version="0" id="O27"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -5406,7 +6971,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O18"> + <dia:object type="UML - Class" version="0" id="O28"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -5502,11 +7067,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -5591,7 +7156,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -5671,7 +7236,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O19"> + <dia:object type="UML - Class" version="0" id="O29"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -5902,7 +7467,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -5959,7 +7524,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O20"> + <dia:object type="UML - Class" version="0" id="O30"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -6055,11 +7620,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('invoicei ... lass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -6408,7 +7973,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O21"> + <dia:object type="UML - Class" version="0" id="O31"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -6504,11 +8069,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('jcitemsi ... lass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -6754,7 +8319,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -6811,7 +8376,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O22"> + <dia:object type="UML - Class" version="0" id="O32"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -6961,7 +8526,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O23"> + <dia:object type="UML - Class" version="0" id="O33"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -6978,7 +8543,7 @@ <dia:real val="6.6000000000000005"/> </dia:attribute> <dia:attribute name="name"> - <dia:string>#makemodel#</dia:string> + <dia:string>#location#</dia:string> </dia:attribute> <dia:attribute name="comment"> @@ -7054,10 +8619,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># parts_id#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -7077,7 +8642,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># make#</dia:string> + <dia:string># line_one#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -7100,7 +8665,99 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># model#</dia:string> + <dia:string># line_two#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># line_three#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># city_province#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># country_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># mail_code#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -7124,9 +8781,104 @@ </dia:attribute> <dia:attribute name="visible_operations"> - <dia:boolean val="false"/> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#location_city_province_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((city_province ~ '[[:al ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#location_line_one_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((line_one ~ '[[:alnum:] ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#location_mail_code_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((mail_code ~ '[[:alnum: ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + </dia:attribute> - <dia:attribute name="operations"/> <dia:attribute name="template"> <dia:boolean val="false"/> @@ -7134,7 +8886,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O24"> + <dia:object type="UML - Class" version="0" id="O34"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -7151,7 +8903,7 @@ <dia:real val="6.6000000000000005"/> </dia:attribute> <dia:attribute name="name"> - <dia:string>#oe#</dia:string> + <dia:string>#makemodel#</dia:string> </dia:attribute> <dia:attribute name="comment"> @@ -7227,14 +8979,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># id#</dia:string> + <dia:string># parts_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -7250,7 +9002,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># ordnumber#</dia:string> + <dia:string># make#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#text#</dia:string> @@ -7273,14 +9025,14 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># transdate#</dia:string> + <dia:string># model#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#date#</dia:string> + <dia:string>#text#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#('now'::text)::date#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -7294,12 +9046,116 @@ </dia:attribute> </dia:composite> + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O35"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#oe#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># vendor_id#</dia:string> + <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -7319,7 +9175,53 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># customer_id#</dia:string> + <dia:string># ordnumber#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># transdate#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#date#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string>#('now'::text)::date#</dia:string> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -7503,7 +9405,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> + <dia:string># person_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -7731,6 +9633,29 @@ </dia:attribute> </dia:composite> + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># oe_class_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + </dia:attribute> <dia:attribute name="visible_operations"> @@ -7744,7 +9669,190 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O25"> + <dia:object type="UML - Class" version="0" id="O36"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#oe_class#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># This could probably be done better ... tion #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#smallint#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># oe_class#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#oe_class_id_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK (((id = 1) OR (id = 2)))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O37"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -7840,11 +9948,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('orderite ... lass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -8147,7 +10255,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O26"> + <dia:object type="UML - Class" version="0" id="O38"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -8243,11 +10351,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -8872,7 +10980,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O27"> + <dia:object type="UML - Class" version="0" id="O39"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -9183,7 +11291,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O28"> + <dia:object type="UML - Class" version="0" id="O40"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -9279,11 +11387,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -9333,7 +11441,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O29"> + <dia:object type="UML - Class" version="0" id="O41"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -9506,7 +11614,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O30"> + <dia:object type="UML - Class" version="0" id="O42"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -9599,7 +11707,7 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># vendor_id#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>#integer#</dia:string> @@ -9771,7 +11879,921 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O31"> + <dia:object type="UML - Class" version="0" id="O43"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># Every person, must have an entity ... _id. #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#serial#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># entity_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># salutation_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># first_name#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># middle_name#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># last_name#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># primary_location_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#person_first_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((first_name ~ '[[:alnum ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#person_last_name_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((last_name ~ '[[:alnum: ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O44"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_company#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># location_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># person_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O45"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_contact#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string># To keep track of the relationship ... dual #</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># person_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># contact_class_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># contact#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#person_to_contact_contact_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((contact ~ '[[:alnum:]_ ... ext))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O46"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_entity#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># person_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># entity_id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#integer#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># related_how#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># created#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#date#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string>#('now'::text)::date#</dia:string> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="operations"> + + <dia:composite type="umloperation"> + <dia:attribute name="name"> + <dia:string>#person_to_entity_check#</dia:string> + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="parameters"> + <dia:composite type="umlparameter"> + <dia:attribute name="name"> + <dia:string>#CHECK ((entity_id <> person_id))#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="value"> + <dia:string/> + </dia:attribute> + <dia:attribute name="kind"> + <dia:enum val="0"/> + </dia:attribute> + </dia:composite> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O47"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -9867,11 +12889,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -9921,7 +12943,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O32"> + <dia:object type="UML - Class" version="0" id="O48"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -10017,11 +13039,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -10232,7 +13254,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O33"> + <dia:object type="UML - Class" version="0" id="O49"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -10543,7 +13565,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O34"> + <dia:object type="UML - Class" version="0" id="O50"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -10739,7 +13761,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O35"> + <dia:object type="UML - Class" version="0" id="O51"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -10935,7 +13957,157 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O36"> + <dia:object type="UML - Class" version="0" id="O52"> + <dia:attribute name="obj_pos"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.05,-0.05;16.4,6.65"/> + </dia:attribute> + <dia:attribute name="elem_corner"> + <dia:point val="0,0"/> + </dia:attribute> + <dia:attribute name="elem_width"> + <dia:real val="16.350000000000001"/> + </dia:attribute> + <dia:attribute name="elem_height"> + <dia:real val="6.6000000000000005"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#salutation#</dia:string> + </dia:attribute> + + <dia:attribute name="comment"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_attributes"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="suppress_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="visible_attributes"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="visible_comments"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:attribute name="wrap_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="wrap_after_char"> + <dia:int val="40"/> + </dia:attribute> + <dia:attribute name="line_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="fill_color"> + <dia:color val="#ffffff"/> + </dia:attribute> + <dia:attribute name="text_color"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="normal_font"> + <dia:font family="monospace" style="0" name="Courier"/> + </dia:attribute> + <dia:attribute name="abstract_font"> + <dia:font family="monospace" style="88" name="Courier"/> + </dia:attribute> + <dia:attribute name="polymorphic_font"> + <dia:font family="monospace" style="8" name="Courier"/> + </dia:attribute> + <dia:attribute name="classname_font"> + <dia:font family="sans" style="80" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font"> + <dia:font family="sans" style="88" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="comment_font"> + <dia:font family="sans" style="8" name="Helvetica"/> + </dia:attribute> + <dia:attribute name="font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="polymorphic_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="abstract_font_height"> + <dia:real val="0.80000000000000004"/> + </dia:attribute> + <dia:attribute name="classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="abstract_classname_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="comment_font_height"> + <dia:real val="1"/> + </dia:attribute> + <dia:attribute name="attributes"> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># id#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#serial#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + <dia:composite type="umlattribute"> + <dia:attribute name="name"> + <dia:string># salutation#</dia:string> + </dia:attribute> + <dia:attribute name="type"> + <dia:string>#text#</dia:string> + </dia:attribute> + <dia:attribute name="value"> + + <dia:string/> + + </dia:attribute> + <dia:attribute name="visibility"> + <dia:enum val="3"/> + </dia:attribute> + <dia:attribute name="abstract"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="class_scope"> + <dia:boolean val="false"/> + </dia:attribute> + </dia:composite> + + </dia:attribute> + + <dia:attribute name="visible_operations"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="operations"/> + + <dia:attribute name="template"> + <dia:boolean val="false"/> + </dia:attribute> + <dia:attribute name="templates"/> + </dia:object> + + <dia:object type="UML - Class" version="0" id="O53"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -11338,7 +14510,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O37"> + <dia:object type="UML - Class" version="0" id="O54"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -11511,7 +14683,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O38"> + <dia:object type="UML - Class" version="0" id="O55"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -11730,7 +14902,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O39"> + <dia:object type="UML - Class" version="0" id="O56"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -11972,7 +15144,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O40"> + <dia:object type="UML - Class" version="0" id="O57"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -12145,7 +15317,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O41"> + <dia:object type="UML - Class" version="0" id="O58"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -12295,7 +15467,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O42"> + <dia:object type="UML - Class" version="0" id="O59"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -12445,7 +15617,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O43"> + <dia:object type="UML - Class" version="0" id="O60"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -12618,7 +15790,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O44"> + <dia:object type="UML - Class" version="0" id="O61"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -12639,7 +15811,7 @@ </dia:attribute> <dia:attribute name="comment"> - <dia:string>##</dia:string> + <dia:string># Now a meta data table #</dia:string> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> @@ -12714,260 +15886,7 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string>#nextval('id'::regclass)#</dia:string> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># name#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(64)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># address1#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># address2#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># city#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># state#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># zipcode#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(10)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># country#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(32)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># contact#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(64)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># phone#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># fax#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#character varying(20)#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> - <dia:string># email#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -12987,10 +15906,10 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># notes#</dia:string> + <dia:string># entity_id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#text#</dia:string> + <dia:string>#integer#</dia:string> </dia:attribute> <dia:attribute name="value"> @@ -13309,29 +16228,6 @@ <dia:composite type="umlattribute"> <dia:attribute name="name"> - <dia:string># employee_id#</dia:string> - </dia:attribute> - <dia:attribute name="type"> - <dia:string>#integer#</dia:string> - </dia:attribute> - <dia:attribute name="value"> - - <dia:string/> - - </dia:attribute> - <dia:attribute name="visibility"> - <dia:enum val="3"/> - </dia:attribute> - <dia:attribute name="abstract"> - <dia:boolean val="false"/> - </dia:attribute> - <dia:attribute name="class_scope"> - <dia:boolean val="false"/> - </dia:attribute> - </dia:composite> - - <dia:composite type="umlattribute"> - <dia:attribute name="name"> <dia:string># language_code#</dia:string> </dia:attribute> <dia:attribute name="type"> @@ -13458,7 +16354,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O45"> + <dia:object type="UML - Class" version="0" id="O62"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -13608,7 +16504,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O46"> + <dia:object type="UML - Class" version="0" id="O63"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -13704,11 +16600,11 @@ <dia:string># id#</dia:string> </dia:attribute> <dia:attribute name="type"> - <dia:string>#integer#</dia:string> + <dia:string>#serial#</dia:string> </dia:attribute> <dia:attribute name="value"> - <dia:string>#nextval('id'::regclass)#</dia:string> + <dia:string/> </dia:attribute> <dia:attribute name="visibility"> @@ -13758,7 +16654,7 @@ <dia:attribute name="templates"/> </dia:object> - <dia:object type="UML - Class" version="0" id="O47"> + <dia:object type="UML - Class" version="0" id="O64"> <dia:attribute name="obj_pos"> <dia:point val="0,0"/> </dia:attribute> @@ -13911,7 +16807,7 @@ - <dia:object type="UML - Dependency" version="0" id="O48"> + <dia:object type="UML - Dependency" version="0" id="O65"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -13949,7 +16845,7 @@ </dia:connections> </dia:object> - <dia:object type="UML - Dependency" version="0" id="O49"> + <dia:object type="UML - Dependency" version="0" id="O66"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -13973,7 +16869,197 @@ <dia:color val="#000000"/> </dia:attribute> <dia:attribute name="name"> - <dia:string>#custom_field_catalog_table_id_fkey#</dia:string> + <dia:string>#ap_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O2" connection="14"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O67"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#ap_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O2" connection="36"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O68"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#ar_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O3" connection="14"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O69"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#ar_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O3" connection="40"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O70"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#audittrail_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O5" connection="20"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O71"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#company_entity_id_fkey#</dia:string> </dia:attribute> <dia:attribute name="stereotype"> <dia:string>##</dia:string> @@ -13983,11 +17069,847 @@ </dia:attribute> <dia:connections> <dia:connection handle="0" to="O8" connection="10"/> - <dia:connection handle="1" to="O9" connection="9"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O72"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#company_entity_class_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O8" connection="14"/> + <dia:connection handle="1" to="O23" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O73"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#company_primary_location_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O8" connection="16"/> + <dia:connection handle="1" to="O33" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O74"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#company_to_contact_company_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O9" connection="8"/> + <dia:connection handle="1" to="O8" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O75"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#company_to_contact_contact_class_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O9" connection="10"/> + <dia:connection handle="1" to="O12" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O76"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#company_to_entity_company_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O10" connection="8"/> + <dia:connection handle="1" to="O8" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O77"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#company_to_entity_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O10" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O78"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#company_to_location_location_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O11" connection="8"/> + <dia:connection handle="1" to="O33" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O79"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#company_to_location_company_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O11" connection="10"/> + <dia:connection handle="1" to="O8" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O80"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#custom_field_catalog_table_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O14" connection="10"/> + <dia:connection handle="1" to="O15" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O81"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#customer_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O16" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O82"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#employee_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O21" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O83"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity_entity_class_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O22" connection="12"/> + <dia:connection handle="1" to="O23" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O84"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity_class_to_entity_entity_class_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O24" connection="8"/> + <dia:connection handle="1" to="O23" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O85"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity_class_to_entity_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O24" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O86"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#entity_other_name_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O25" connection="8"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O87"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#gl_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O28" connection="16"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O88"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#inventory_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O29" connection="20"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O89"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#jcitems_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O31" connection="30"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O90"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#location_country_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O33" connection="18"/> + <dia:connection handle="1" to="O13" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O91"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#oe_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O35" connection="14"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O92"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#oe_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O35" connection="30"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O93"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#oe_oe_class_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O35" connection="50"/> + <dia:connection handle="1" to="O36" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Dependency" version="0" id="O50"> + <dia:object type="UML - Dependency" version="0" id="O94"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -14020,12 +17942,12 @@ <dia:boolean val="true"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O29" connection="8"/> - <dia:connection handle="1" to="O26" connection="9"/> + <dia:connection handle="0" to="O41" connection="8"/> + <dia:connection handle="1" to="O38" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Dependency" version="0" id="O51"> + <dia:object type="UML - Dependency" version="0" id="O95"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -14058,12 +17980,12 @@ <dia:boolean val="true"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O29" connection="10"/> + <dia:connection handle="0" to="O41" connection="10"/> <dia:connection handle="1" to="O7" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Dependency" version="0" id="O52"> + <dia:object type="UML - Dependency" version="0" id="O96"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -14096,12 +18018,392 @@ <dia:boolean val="true"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O29" connection="12"/> - <dia:connection handle="1" to="O40" connection="9"/> + <dia:connection handle="0" to="O41" connection="12"/> + <dia:connection handle="1" to="O57" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O97"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#partsvendor_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O42" connection="8"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O98"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O43" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O99"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_salutation_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O43" connection="12"/> + <dia:connection handle="1" to="O52" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O100"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_primary_location_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O43" connection="20"/> + <dia:connection handle="1" to="O33" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O101"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_company_location_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O44" connection="8"/> + <dia:connection handle="1" to="O33" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O102"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_company_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O44" connection="10"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O103"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_contact_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O45" connection="8"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O104"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_contact_contact_class_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O45" connection="10"/> + <dia:connection handle="1" to="O12" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Dependency" version="0" id="O53"> + <dia:object type="UML - Dependency" version="0" id="O105"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_entity_person_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O46" connection="8"/> + <dia:connection handle="1" to="O43" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O106"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#person_to_entity_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O46" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O107"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -14134,12 +18436,12 @@ <dia:boolean val="true"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O39" connection="8"/> + <dia:connection handle="0" to="O56" connection="8"/> <dia:connection handle="1" to="O7" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Dependency" version="0" id="O54"> + <dia:object type="UML - Dependency" version="0" id="O108"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -14172,12 +18474,12 @@ <dia:boolean val="true"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O39" connection="18"/> - <dia:connection handle="1" to="O41" connection="9"/> + <dia:connection handle="0" to="O56" connection="18"/> + <dia:connection handle="1" to="O58" connection="9"/> </dia:connections> </dia:object> - <dia:object type="UML - Dependency" version="0" id="O55"> + <dia:object type="UML - Dependency" version="0" id="O109"> <dia:attribute name="obj_pos"> <dia:point val="0,3.5"/> </dia:attribute> @@ -14210,8 +18512,46 @@ <dia:boolean val="true"/> </dia:attribute> <dia:connections> - <dia:connection handle="0" to="O40" connection="12"/> - <dia:connection handle="1" to="O41" connection="9"/> + <dia:connection handle="0" to="O57" connection="12"/> + <dia:connection handle="1" to="O58" connection="9"/> + </dia:connections> + </dia:object> + + <dia:object type="UML - Dependency" version="0" id="O110"> + <dia:attribute name="obj_pos"> + <dia:point val="0,3.5"/> + </dia:attribute> + <dia:attribute name="obj_bb"> + <dia:rectangle val="-0.0515705,2.29861;25.1127,3.55157"/> + </dia:attribute> + <dia:attribute name="orth_points"> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + <dia:point val="1.0,1.0"/> + </dia:attribute> + <dia:attribute name="orth_orient"> + <dia:enum val="1"/> + <dia:enum val="0"/> + </dia:attribute> + <dia:attribute name="orth_autoroute"> + <dia:boolean val="true"/> + </dia:attribute> + + <dia:attribute name="line_colour"> + <dia:color val="#000000"/> + </dia:attribute> + <dia:attribute name="name"> + <dia:string>#vendor_entity_id_fkey#</dia:string> + </dia:attribute> + <dia:attribute name="stereotype"> + <dia:string>##</dia:string> + </dia:attribute> + <dia:attribute name="draw_arrow"> + <dia:boolean val="true"/> + </dia:attribute> + <dia:connections> + <dia:connection handle="0" to="O61" connection="10"/> + <dia:connection handle="1" to="O22" connection="9"/> </dia:connections> </dia:object> |