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> | |
8 | <field> | |
9 | <name>id</name> | |
10 | <type>int unsigned</type> | |
11 | <required>true</required> | |
12 | <comment>ID</comment> | |
13 | <add>3.2</add> | |
14 | </field> | |
15 | <primaryKey> | |
16 | <name>id</name> | |
17 | <autoincrement>true</autoincrement> | |
18 | </primaryKey> | |
6a488035 TO |
19 | <field> |
20 | <name>entity_table</name> | |
21 | <type>varchar</type> | |
22 | <length>64</length> | |
3c7d2158 | 23 | <required>true</required> |
6a488035 TO |
24 | <import>true</import> |
25 | <add>3.2</add> | |
2ecdffee | 26 | <comment>May contain civicrm_financial_item, civicrm_contribution, civicrm_financial_trxn, civicrm_grant, etc</comment> |
6a488035 | 27 | </field> |
3c7d2158 | 28 | <field> |
29 | <name>entity_id</name> | |
30 | <type>int unsigned</type> | |
31 | <required>true</required> | |
32 | <add>3.2</add> | |
6a488035 | 33 | </field> |
71e5aa5c ARW |
34 | <dynamicForeignKey> |
35 | <idColumn>entity_id</idColumn> | |
36 | <typeColumn>entity_table</typeColumn> | |
3c7d2158 | 37 | <add>3.2</add> |
71e5aa5c | 38 | </dynamicForeignKey> |
3c7d2158 | 39 | <field> |
40 | <name>financial_trxn_id</name> | |
41 | <type>int unsigned</type> | |
42 | <add>3.2</add> | |
43 | </field> | |
44 | <foreignKey> | |
45 | <name>financial_trxn_id</name> | |
46 | <table>civicrm_financial_trxn</table> | |
47 | <key>id</key> | |
48 | <add>3.2</add> | |
6a488035 TO |
49 | <onDelete>SET NULL</onDelete> |
50 | </foreignKey> | |
3c7d2158 | 51 | <field> |
52 | <name>amount</name> | |
53 | <type>decimal</type> | |
6a488035 | 54 | <required>true</required> |
4d9dd529 PN |
55 | <import>true</import> |
56 | <headerPattern>/amount/i</headerPattern> | |
57 | <dataPattern>/^\d+(\.\d{2})?$/</dataPattern> | |
6a488035 | 58 | <comment>allocated amount of transaction to this entity</comment> |
3c7d2158 | 59 | <add>3.2</add> |
60 | </field> | |
6a488035 TO |
61 | <field> |
62 | <name>currency</name> | |
63 | <type>varchar</type> | |
64 | <length>3</length> | |
65 | <default>NULL</default> | |
66 | <comment>3 character string, value from config setting or input via user.</comment> | |
67 | <add>3.2</add> | |
68 | <drop>4.3</drop> | |
69 | </field> | |
b676923b PN |
70 | <index> |
71 | <name>UI_entity_financial_trxn_entity_table</name> | |
72 | <fieldName>entity_table</fieldName> | |
73 | <add>4.3</add> | |
3c7d2158 | 74 | </index> |
b676923b PN |
75 | <index> |
76 | <name>UI_entity_financial_trxn_entity_id</name> | |
77 | <fieldName>entity_id</fieldName> | |
78 | <add>4.3</add> | |
3c7d2158 | 79 | </index> |
6a488035 TO |
80 | </table> |
81 |