Commit | Line | Data |
---|---|---|
3c7d2158 | 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
6a488035 | 2 | |
3c7d2158 | 3 | <table> |
4 | <base>CRM/Financial</base> | |
5 | <class>EntityFinancialTrxn</class> | |
6 | <name>civicrm_entity_financial_trxn</name> | |
7 | <add>3.2</add> | |
d31fb4e3 | 8 | <component>CiviContribute</component> |
3c7d2158 | 9 | <field> |
10 | <name>id</name> | |
41b12fc8 | 11 | <title>Entity Financial Transaction ID</title> |
3c7d2158 | 12 | <type>int unsigned</type> |
13 | <required>true</required> | |
14 | <comment>ID</comment> | |
15 | <add>3.2</add> | |
16 | </field> | |
17 | <primaryKey> | |
18 | <name>id</name> | |
19 | <autoincrement>true</autoincrement> | |
20 | </primaryKey> | |
6a488035 TO |
21 | <field> |
22 | <name>entity_table</name> | |
41b12fc8 | 23 | <title>Entity Table</title> |
6a488035 TO |
24 | <type>varchar</type> |
25 | <length>64</length> | |
3c7d2158 | 26 | <required>true</required> |
6a488035 TO |
27 | <import>true</import> |
28 | <add>3.2</add> | |
2ecdffee | 29 | <comment>May contain civicrm_financial_item, civicrm_contribution, civicrm_financial_trxn, civicrm_grant, etc</comment> |
6a488035 | 30 | </field> |
3c7d2158 | 31 | <field> |
32 | <name>entity_id</name> | |
41b12fc8 | 33 | <title>Entity ID</title> |
3c7d2158 | 34 | <type>int unsigned</type> |
35 | <required>true</required> | |
36 | <add>3.2</add> | |
6a488035 | 37 | </field> |
71e5aa5c ARW |
38 | <dynamicForeignKey> |
39 | <idColumn>entity_id</idColumn> | |
40 | <typeColumn>entity_table</typeColumn> | |
3c7d2158 | 41 | <add>3.2</add> |
71e5aa5c | 42 | </dynamicForeignKey> |
3c7d2158 | 43 | <field> |
44 | <name>financial_trxn_id</name> | |
41b12fc8 | 45 | <title>Financial Transaction Id</title> |
3c7d2158 | 46 | <type>int unsigned</type> |
47 | <add>3.2</add> | |
48 | </field> | |
49 | <foreignKey> | |
50 | <name>financial_trxn_id</name> | |
51 | <table>civicrm_financial_trxn</table> | |
52 | <key>id</key> | |
53 | <add>3.2</add> | |
6a488035 TO |
54 | <onDelete>SET NULL</onDelete> |
55 | </foreignKey> | |
3c7d2158 | 56 | <field> |
57 | <name>amount</name> | |
41b12fc8 | 58 | <title>Amount</title> |
3c7d2158 | 59 | <type>decimal</type> |
6a488035 | 60 | <required>true</required> |
4d9dd529 PN |
61 | <import>true</import> |
62 | <headerPattern>/amount/i</headerPattern> | |
63 | <dataPattern>/^\d+(\.\d{2})?$/</dataPattern> | |
6a488035 | 64 | <comment>allocated amount of transaction to this entity</comment> |
3c7d2158 | 65 | <add>3.2</add> |
66 | </field> | |
b676923b PN |
67 | <index> |
68 | <name>UI_entity_financial_trxn_entity_table</name> | |
69 | <fieldName>entity_table</fieldName> | |
70 | <add>4.3</add> | |
3c7d2158 | 71 | </index> |
b676923b PN |
72 | <index> |
73 | <name>UI_entity_financial_trxn_entity_id</name> | |
74 | <fieldName>entity_id</fieldName> | |
75 | <add>4.3</add> | |
3c7d2158 | 76 | </index> |
6a488035 TO |
77 | </table> |
78 |