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> | |
31 | </field> | |
32 | <field> | |
33 | <name>entity_id</name> | |
a646bdd2 | 34 | <title>Entity ID</title> |
6a488035 TO |
35 | <type>int unsigned</type> |
36 | <required>true</required> | |
37 | <comment>FK to entity table specified in entity_table column.</comment> | |
38 | <add>3.3</add> | |
39 | </field> | |
71e5aa5c ARW |
40 | <dynamicForeignKey> |
41 | <idColumn>entity_id</idColumn> | |
42 | <typeColumn>entity_table</typeColumn> | |
43 | <add>3.3</add> | |
44 | </dynamicForeignKey> | |
6a488035 TO |
45 | <index> |
46 | <name>index_entity</name> | |
47 | <fieldName>entity_table</fieldName> | |
48 | <fieldName>entity_id</fieldName> | |
49 | <add>3.3</add> | |
50 | </index> | |
51 | <field> | |
52 | <name>batch_id</name> | |
a646bdd2 | 53 | <title>Batch ID</title> |
6a488035 TO |
54 | <type>int unsigned</type> |
55 | <required>true</required> | |
56 | <comment>FK to civicrm_batch</comment> | |
c76af7c4 E |
57 | <pseudoconstant> |
58 | <table>civicrm_batch</table> | |
59 | <keyColumn>id</keyColumn> | |
60 | <labelColumn>title</labelColumn> | |
61 | </pseudoconstant> | |
57e94608 A |
62 | <html> |
63 | <label>Batch</label> | |
64 | </html> | |
6a488035 TO |
65 | <add>3.3</add> |
66 | </field> | |
67 | <foreignKey> | |
68 | <name>batch_id</name> | |
69 | <table>civicrm_batch</table> | |
70 | <key>id</key> | |
71 | <add>3.3</add> | |
72 | <onDelete>CASCADE</onDelete> | |
73 | </foreignKey> | |
74 | <index> | |
75 | <name>UI_batch_entity</name> | |
76 | <fieldName>batch_id</fieldName> | |
77 | <fieldName>entity_id</fieldName> | |
78 | <fieldName>entity_table</fieldName> | |
79 | <unique>true</unique> | |
80 | <add>3.3</add> | |
81 | </index> | |
82 | </table> |