-<?xml version="1.0" encoding="iso-8859-1" ?>
+<?xml version="1.0" encoding="iso-8859-1" ?>
-<table>
- <base>CRM/Financial</base>
- <class>EntityFinancialAccount</class>
- <name>civicrm_entity_financial_account</name>
+<table>
+ <base>CRM/Financial</base>
+ <class>EntityFinancialAccount</class>
+ <name>civicrm_entity_financial_account</name>
<add>4.3</add>
<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>
- <log>true</log>
- <field>
- <name>id</name>
- <type>int unsigned</type>
- <required>true</required>
- <comment>ID</comment>
- <add>4.3</add>
- </field>
- <primaryKey>
- <name>id</name>
- <autoincrement>true</autoincrement>
- </primaryKey>
+ <log>true</log>
+ <field>
+ <name>id</name>
+ <type>int unsigned</type>
+ <required>true</required>
+ <comment>ID</comment>
+ <add>4.3</add>
+ </field>
+ <primaryKey>
+ <name>id</name>
+ <autoincrement>true</autoincrement>
+ </primaryKey>
<field>
<name>entity_table</name>
<type>varchar</type>
<length>64</length>
- <required>true</required>
+ <required>true</required>
<import>true</import>
<add>4.3</add>
<comment>Links to an entity_table like civicrm_financial_type</comment>
</field>
- <field>
- <name>entity_id</name>
- <type>int unsigned</type>
- <required>true</required>
+ <field>
+ <name>entity_id</name>
+ <type>int unsigned</type>
+ <required>true</required>
<add>4.3</add>
<comment>Links to an id in the entity_table, such as vid in civicrm_financial_type</comment>
</field>
<typeColumn>entity_table</typeColumn>
<add>4.3</add>
</dynamicForeignKey>
- <field>
- <name>account_relationship</name>
- <type>int unsigned</type>
+ <field>
+ <name>account_relationship</name>
+ <type>int unsigned</type>
<required>true</required>
- <add>4.3</add>
+ <add>4.3</add>
<comment>FK to a new civicrm_option_value (account_relationship)</comment>
<pseudoconstant>
<optionGroupName>account_relationship</optionGroupName>
</pseudoconstant>
- </field>
+ </field>
<field>
- <name>financial_account_id</name>
- <type>int unsigned</type>
+ <name>financial_account_id</name>
+ <type>int unsigned</type>
<required>true</required>
- <add>4.3</add>
+ <add>4.3</add>
<comment>FK to the financial_account_id</comment>
<pseudoconstant>
<table>civicrm_financial_account</table>
<labelColumn>name</labelColumn>
</pseudoconstant>
</field>
- <foreignKey>
- <name>financial_account_id</name>
- <table>civicrm_financial_account</table>
- <key>id</key>
- <add>4.3</add>
+ <foreignKey>
+ <name>financial_account_id</name>
+ <table>civicrm_financial_account</table>
+ <key>id</key>
+ <add>4.3</add>
<onDelete>RESTRICT</onDelete>
</foreignKey>
</table>