1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Financial
</base>
5 <class>EntityFinancialAccount
</class>
6 <name>civicrm_entity_financial_account
</name>
8 <comment>Map between an entity and a financial account, where there is a specific relationship between the financial account and the entity, e.g. Income Account for or AR Account for
</comment>
12 <title>Entity Financial Account ID
</title>
13 <type>int unsigned
</type>
14 <required>true
</required>
20 <autoincrement>true
</autoincrement>
23 <name>entity_table
</name>
24 <title>Entity Table
</title>
27 <required>true
</required>
30 <comment>Links to an entity_table like civicrm_financial_type
</comment>
33 <name>entity_id
</name>
34 <title>Entity ID
</title>
35 <type>int unsigned
</type>
36 <required>true
</required>
38 <comment>Links to an id in the entity_table, such as vid in civicrm_financial_type
</comment>
41 <idColumn>entity_id
</idColumn>
42 <typeColumn>entity_table
</typeColumn>
46 <name>account_relationship
</name>
47 <title>Account Relationship
</title>
48 <type>int unsigned
</type>
49 <required>true
</required>
51 <comment>FK to a new civicrm_option_value (account_relationship)
</comment>
53 <optionGroupName>account_relationship
</optionGroupName>
60 <name>financial_account_id
</name>
61 <type>int unsigned
</type>
62 <title>Financial Account
</title>
63 <required>true
</required>
65 <comment>FK to the financial_account_id
</comment>
67 <table>civicrm_financial_account
</table>
68 <keyColumn>id
</keyColumn>
69 <labelColumn>name
</labelColumn>
76 <name>financial_account_id
</name>
77 <table>civicrm_financial_account
</table>
80 <onDelete>RESTRICT
</onDelete>
83 <name>index_entity_id_entity_table_account_relationship
</name>
84 <fieldName>entity_id
</fieldName>
85 <fieldName>entity_table
</fieldName>
86 <fieldName>account_relationship
</fieldName>