Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Batch</base> | |
5 | <class>EntityBatch</class> | |
6 | <name>civicrm_entity_batch</name> | |
7 | <comment>Batch entities (Contributions, Participants, Contacts) to a batch.</comment> | |
929a1c14 | 8 | <add>3.3</add> |
6a488035 TO |
9 | <field> |
10 | <name>id</name> | |
a646bdd2 | 11 | <title>EntityBatch ID</title> |
6a488035 TO |
12 | <type>int unsigned</type> |
13 | <required>true</required> | |
14 | <comment>primary key</comment> | |
15 | <add>3.3</add> | |
16 | </field> | |
17 | <primaryKey> | |
18 | <name>id</name> | |
19 | <autoincrement>true</autoincrement> | |
20 | </primaryKey> | |
21 | <field> | |
22 | <name>entity_table</name> | |
a646bdd2 | 23 | <title>EntityBatch Table</title> |
6a488035 TO |
24 | <type>varchar</type> |
25 | <length>64</length> | |
26 | <comment>physical tablename for entity being joined to file, e.g. civicrm_contact</comment> | |
27 | <add>3.3</add> | |
28 | </field> | |
29 | <field> | |
30 | <name>entity_id</name> | |
a646bdd2 | 31 | <title>Entity ID</title> |
6a488035 TO |
32 | <type>int unsigned</type> |
33 | <required>true</required> | |
34 | <comment>FK to entity table specified in entity_table column.</comment> | |
35 | <add>3.3</add> | |
36 | </field> | |
71e5aa5c ARW |
37 | <dynamicForeignKey> |
38 | <idColumn>entity_id</idColumn> | |
39 | <typeColumn>entity_table</typeColumn> | |
40 | <add>3.3</add> | |
41 | </dynamicForeignKey> | |
6a488035 TO |
42 | <index> |
43 | <name>index_entity</name> | |
44 | <fieldName>entity_table</fieldName> | |
45 | <fieldName>entity_id</fieldName> | |
46 | <add>3.3</add> | |
47 | </index> | |
48 | <field> | |
49 | <name>batch_id</name> | |
a646bdd2 | 50 | <title>Batch ID</title> |
6a488035 TO |
51 | <type>int unsigned</type> |
52 | <required>true</required> | |
53 | <comment>FK to civicrm_batch</comment> | |
c76af7c4 E |
54 | <pseudoconstant> |
55 | <table>civicrm_batch</table> | |
56 | <keyColumn>id</keyColumn> | |
57 | <labelColumn>title</labelColumn> | |
58 | </pseudoconstant> | |
6a488035 TO |
59 | <add>3.3</add> |
60 | </field> | |
61 | <foreignKey> | |
62 | <name>batch_id</name> | |
63 | <table>civicrm_batch</table> | |
64 | <key>id</key> | |
65 | <add>3.3</add> | |
66 | <onDelete>CASCADE</onDelete> | |
67 | </foreignKey> | |
68 | <index> | |
69 | <name>UI_batch_entity</name> | |
70 | <fieldName>batch_id</fieldName> | |
71 | <fieldName>entity_id</fieldName> | |
72 | <fieldName>entity_table</fieldName> | |
73 | <unique>true</unique> | |
74 | <add>3.3</add> | |
75 | </index> | |
76 | </table> |