1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
5 <name>civicrm_case
</name>
6 <comment>This table stores information about cases grouping activities.
</comment>
9 <icon>fa-folder-open
</icon>
12 <type>int unsigned
</type>
13 <uniqueName>case_id
</uniqueName>
14 <required>true
</required>
16 <title>Case ID
</title>
17 <comment>Unique Case ID
</comment>
25 <autoincrement>true
</autoincrement>
28 <name>contact_id
</name>
29 <type>int unsigned
</type>
30 <uniqueName>case_contact_id
</uniqueName>
31 <required>true
</required>
32 <comment>Contact ID of contact record given case belongs to.
</comment>
37 <name>contact_id
</name>
38 <table>civicrm_contact
</table>
42 <onDelete>CASCADE
</onDelete>
45 <name>case_type_id
</name>
46 <type>int unsigned
</type>
48 <export>false
</export>
49 <title>Case Type
</title>
50 <required>true
</required>
51 <comment>FK to civicrm_case_type.id
</comment>
56 <table>civicrm_case_type
</table>
57 <keyColumn>id
</keyColumn>
58 <labelColumn>title
</labelColumn>
63 <name>index_case_type_id
</name>
64 <fieldName>case_type_id
</fieldName>
68 <name>case_type_id
</name>
69 <table>civicrm_case_type
</table>
74 <name>casetag1_id
</name>
77 <required>true
</required>
78 <comment>Id of first case category.
</comment>
83 <name>index_casetag1_id
</name>
84 <fieldName>casetag1_id
</fieldName>
89 <name>casetag2_id
</name>
92 <required>true
</required>
93 <comment>Id of second case category.
</comment>
98 <name>index_casetag2_id
</name>
99 <fieldName>casetag2_id
</fieldName>
104 <name>casetag3_id
</name>
107 <required>true
</required>
108 <comment>Id of third case category.
</comment>
113 <name>index_casetag3_id
</name>
114 <fieldName>casetag3_id
</fieldName>
122 <title>Case Subject
</title>
123 <import>true
</import>
124 <uniqueName>case_subject
</uniqueName>
125 <comment>Short name of the case.
</comment>
132 <name>start_date
</name>
133 <uniqueName>case_start_date
</uniqueName>
134 <title>Case Start Date
</title>
135 <import>true
</import>
137 <comment>Date on which given case starts.
</comment>
139 <type>Select Date
</type>
140 <formatType>activityDateTime
</formatType>
145 <name>end_date
</name>
146 <uniqueName>case_end_date
</uniqueName>
147 <title>Case End Date
</title>
148 <import>true
</import>
150 <comment>Date on which given case ends.
</comment>
152 <type>Select Date
</type>
153 <formatType>activityDateTime
</formatType>
161 <type>TextArea
</type>
165 <comment>Details populated from Open Case. Only used in the CiviCase extension.
</comment>
169 <name>status_id
</name>
170 <type>int unsigned
</type>
171 <uniqueName>case_status_id
</uniqueName>
172 <required>true
</required>
173 <import>true
</import>
174 <export>false
</export>
175 <title>Case Status
</title>
176 <comment>Id of case status.
</comment>
178 <optionGroupName>case_status
</optionGroupName>
186 <name>is_deleted
</name>
187 <title>Case is in the Trash
</title>
188 <uniqueName>case_deleted
</uniqueName>
191 <import>true
</import>
192 <title>Case Deleted
</title>
194 <type>CheckBox
</type>
199 <name>index_is_deleted
</name>
200 <fieldName>is_deleted
</fieldName>
204 <name>created_date
</name>
205 <uniqueName>case_created_date
</uniqueName>
206 <type>timestamp
</type>
207 <comment>When was the case was created.
</comment>
208 <required>false
</required>
209 <export>true
</export>
210 <default>NULL
</default>
214 <name>modified_date
</name>
215 <uniqueName>case_modified_date
</uniqueName>
216 <type>timestamp
</type>
217 <comment>When was the case (or closely related entity) was created or modified or deleted.
</comment>
218 <required>false
</required>
219 <export>true
</export>
220 <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
</default>