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