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> | |
0481e12c A |
15 | <html> |
16 | <type>Number</type> | |
17 | </html> | |
6a488035 TO |
18 | <add>3.3</add> |
19 | </field> | |
20 | <primaryKey> | |
21 | <name>id</name> | |
22 | <autoincrement>true</autoincrement> | |
23 | </primaryKey> | |
24 | <field> | |
25 | <name>entity_table</name> | |
a646bdd2 | 26 | <title>EntityBatch Table</title> |
6a488035 TO |
27 | <type>varchar</type> |
28 | <length>64</length> | |
29 | <comment>physical tablename for entity being joined to file, e.g. civicrm_contact</comment> | |
30 | <add>3.3</add> | |
c87e11eb EM |
31 | <pseudoconstant> |
32 | <optionGroupName>entity_batch_extends</optionGroupName> | |
33 | </pseudoconstant> | |
6a488035 TO |
34 | </field> |
35 | <field> | |
36 | <name>entity_id</name> | |
a646bdd2 | 37 | <title>Entity ID</title> |
6a488035 TO |
38 | <type>int unsigned</type> |
39 | <required>true</required> | |
40 | <comment>FK to entity table specified in entity_table column.</comment> | |
41 | <add>3.3</add> | |
42 | </field> | |
71e5aa5c ARW |
43 | <dynamicForeignKey> |
44 | <idColumn>entity_id</idColumn> | |
45 | <typeColumn>entity_table</typeColumn> | |
46 | <add>3.3</add> | |
47 | </dynamicForeignKey> | |
6a488035 TO |
48 | <index> |
49 | <name>index_entity</name> | |
50 | <fieldName>entity_table</fieldName> | |
51 | <fieldName>entity_id</fieldName> | |
52 | <add>3.3</add> | |
53 | </index> | |
54 | <field> | |
55 | <name>batch_id</name> | |
a646bdd2 | 56 | <title>Batch ID</title> |
6a488035 TO |
57 | <type>int unsigned</type> |
58 | <required>true</required> | |
59 | <comment>FK to civicrm_batch</comment> | |
c76af7c4 E |
60 | <pseudoconstant> |
61 | <table>civicrm_batch</table> | |
62 | <keyColumn>id</keyColumn> | |
63 | <labelColumn>title</labelColumn> | |
64 | </pseudoconstant> | |
57e94608 A |
65 | <html> |
66 | <label>Batch</label> | |
67 | </html> | |
6a488035 TO |
68 | <add>3.3</add> |
69 | </field> | |
70 | <foreignKey> | |
71 | <name>batch_id</name> | |
72 | <table>civicrm_batch</table> | |
73 | <key>id</key> | |
74 | <add>3.3</add> | |
75 | <onDelete>CASCADE</onDelete> | |
76 | </foreignKey> | |
77 | <index> | |
78 | <name>UI_batch_entity</name> | |
79 | <fieldName>batch_id</fieldName> | |
80 | <fieldName>entity_id</fieldName> | |
81 | <fieldName>entity_table</fieldName> | |
82 | <unique>true</unique> | |
83 | <add>3.3</add> | |
84 | </index> | |
85 | </table> |