Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | <table> | |
3 | <base>CRM/Case</base> | |
4 | <class>CaseActivity</class> | |
5 | <name>civicrm_case_activity</name> | |
6 | <comment>Joining table for case-activity associations.</comment> | |
7 | <add>1.8</add> | |
8 | <log>true</log> | |
9 | <field> | |
10 | <name>id</name> | |
11 | <type>int unsigned</type> | |
12 | <required>true</required> | |
13 | <comment>Unique case-activity association id</comment> | |
14 | <add>1.8</add> | |
15 | </field> | |
16 | <primaryKey> | |
17 | <name>id</name> | |
18 | <autoincrement>true</autoincrement> | |
19 | </primaryKey> | |
20 | <field> | |
21 | <name>case_id</name> | |
22 | <type>int unsigned</type> | |
23 | <required>true</required> | |
24 | <comment>Case ID of case-activity association.</comment> | |
25 | <add>1.8</add> | |
26 | </field> | |
27 | <foreignKey> | |
28 | <name>case_id</name> | |
29 | <table>civicrm_case</table> | |
30 | <key>id</key> | |
31 | <add>1.8</add> | |
32 | <onDelete>CASCADE</onDelete> | |
33 | </foreignKey> | |
34 | <field> | |
35 | <name>activity_id</name> | |
36 | <type>int unsigned</type> | |
37 | <required>true</required> | |
38 | <comment>Activity ID of case-activity association.</comment> | |
39 | <add>2.0</add> | |
40 | </field> | |
41 | <foreignKey> | |
42 | <name>activity_id</name> | |
43 | <table>civicrm_activity</table> | |
44 | <key>id</key> | |
45 | <add>2.0</add> | |
46 | <onDelete>CASCADE</onDelete> | |
47 | </foreignKey> | |
48 | <index> | |
49 | <name>UI_case_activity_id</name> | |
50 | <fieldName>case_id</fieldName> | |
51 | <fieldName>activity_id</fieldName> | |
52 | <add>2.0</add> | |
53 | </index> | |
6a488035 | 54 | |
3c7d2158 | 55 | <field> |
6a488035 TO |
56 | <name>activity_entity_table</name> |
57 | <type>varchar</type> | |
58 | <length>64</length> | |
59 | <required>true</required> | |
60 | <comment>Name of table where item being referenced is stored (activity, phonecall or meeting).</comment> | |
61 | <add>1.8</add> | |
62 | <drop>2.0</drop> | |
63 | </field> | |
64 | ||
65 | <field> | |
3c7d2158 | 66 | <name>activity_entity_id</name> |
6a488035 TO |
67 | <type>int unsigned</type> |
68 | <required>true</required> | |
69 | <comment>Entity (activity, phonecall or meeting) id for which the assigment is created</comment> | |
70 | <add>1.8</add> | |
3c7d2158 | 71 | <drop>2.0</drop> |
6a488035 TO |
72 | </field> |
73 | ||
71e5aa5c ARW |
74 | <dynamicForeignKey> |
75 | <idColumn>activity_entity_id</idColumn> | |
76 | <typeColumn>activity_entity_table</typeColumn> | |
77 | <add>1.8</add> | |
78 | <drop>2.0</drop> | |
79 | </dynamicForeignKey> | |
6a488035 TO |
80 | |
81 | </table> |