added test to save xml file, CRM-14476
[civicrm-core.git] / xml / schema / Case / CaseType.xml
CommitLineData
fc9e7e51
ARW
1<?xml version="1.0" encoding="utf-8" ?>
2<table>
3 <base>CRM/Case</base>
4 <class>CaseType</class>
5 <name>civicrm_case_type</name>
6 <comment>Case type definition</comment>
7 <add>4.5</add>
8 <log>true</log>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Autoincremented type id</comment>
14 <add>4.5</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>name</name>
22 <type>varchar</type>
23 <length>64</length>
24 <required>true</required>
25 <comment>Machine name for Case Type</comment>
26 <add>4.5</add>
27 </field>
28 <index>
29 <name>case_type_name</name>
30 <fieldName>name</fieldName>
31 <unique>true</unique>
32 <add>4.5</add>
33 </index>
34 <field>
35 <name>title</name>
36 <type>varchar</type>
37 <length>64</length>
38 <required>true</required>
f2bb267c 39 <localizable>true</localizable>
fc9e7e51
ARW
40 <comment>Natural language name for Case Type</comment>
41 <add>4.5</add>
42 </field>
43 <field>
44 <name>description</name>
45 <type>varchar</type>
46 <length>255</length>
f2bb267c 47 <localizable>true</localizable>
fc9e7e51
ARW
48 <comment>Description of the Case Type</comment>
49 <add>4.5</add>
50 </field>
51 <field>
52 <name>is_active</name>
53 <type>boolean</type>
54 <comment>Is this entry active?</comment>
55 <add>4.5</add>
56 </field>
57 <field>
58 <name>is_reserved</name>
59 <type>boolean</type>
60 <comment>Is this case type a predefined system type?</comment>
61 <add>4.5</add>
62 </field>
63 <field>
64 <name>weight</name>
65 <type>int</type>
66 <required>true</required>
67 <default>1</default>
68 <comment>Ordering of the case types</comment>
69 <add>4.5</add>
70 </field>
54bd90eb 71 <field>
72 <name>xml_definition</name>
73 <type>blob</type>
74 <comment>xml definition of case type</comment>
75 <add>4.5</add>
76 </field>
fc9e7e51 77</table>