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 <type>int unsigned
</type>
13 <required>true
</required>
19 <autoincrement>true
</autoincrement>
22 <name>entity_table
</name>
25 <required>true
</required>
28 <comment>Links to an entity_table like civicrm_financial_type
</comment>
31 <name>entity_id
</name>
32 <type>int unsigned
</type>
33 <required>true
</required>
35 <comment>Links to an id in the entity_table, such as vid in civicrm_financial_type
</comment>
38 <name>account_relationship
</name>
39 <type>int unsigned
</type>
40 <required>true
</required>
42 <comment>FK to a new civicrm_option_value (account_relationship)
</comment>
45 <name>financial_account_id
</name>
46 <type>int unsigned
</type>
47 <required>true
</required>
49 <comment>FK to the financial_account_id
</comment>
52 <name>financial_account_id
</name>
53 <table>civicrm_financial_account
</table>
56 <onDelete>RESTRICT
</onDelete>