| 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 | <title>Case Type ID</title> |
| 12 | <type>int unsigned</type> |
| 13 | <required>true</required> |
| 14 | <comment>Autoincremented type id</comment> |
| 15 | <add>4.5</add> |
| 16 | </field> |
| 17 | <primaryKey> |
| 18 | <name>id</name> |
| 19 | <autoincrement>true</autoincrement> |
| 20 | </primaryKey> |
| 21 | <field> |
| 22 | <name>name</name> |
| 23 | <title>Case Type Name</title> |
| 24 | <type>varchar</type> |
| 25 | <length>64</length> |
| 26 | <required>true</required> |
| 27 | <comment>Machine name for Case Type</comment> |
| 28 | <add>4.5</add> |
| 29 | </field> |
| 30 | <index> |
| 31 | <name>case_type_name</name> |
| 32 | <fieldName>name</fieldName> |
| 33 | <unique>true</unique> |
| 34 | <add>4.5</add> |
| 35 | </index> |
| 36 | <field> |
| 37 | <name>title</name> |
| 38 | <title>Case Type Title</title> |
| 39 | <type>varchar</type> |
| 40 | <length>64</length> |
| 41 | <required>true</required> |
| 42 | <localizable>true</localizable> |
| 43 | <comment>Natural language name for Case Type</comment> |
| 44 | <add>4.5</add> |
| 45 | </field> |
| 46 | <field> |
| 47 | <name>description</name> |
| 48 | <title>Case Type Description</title> |
| 49 | <type>varchar</type> |
| 50 | <length>255</length> |
| 51 | <localizable>true</localizable> |
| 52 | <comment>Description of the Case Type</comment> |
| 53 | <add>4.5</add> |
| 54 | </field> |
| 55 | <field> |
| 56 | <name>is_active</name> |
| 57 | <title>Case Type Is Active</title> |
| 58 | <type>boolean</type> |
| 59 | <comment>Is this entry active?</comment> |
| 60 | <add>4.5</add> |
| 61 | </field> |
| 62 | <field> |
| 63 | <name>is_reserved</name> |
| 64 | <title>Case Type Is Reserved</title> |
| 65 | <type>boolean</type> |
| 66 | <comment>Is this case type a predefined system type?</comment> |
| 67 | <add>4.5</add> |
| 68 | </field> |
| 69 | <field> |
| 70 | <name>weight</name> |
| 71 | <title>Order</title> |
| 72 | <type>int</type> |
| 73 | <required>true</required> |
| 74 | <default>1</default> |
| 75 | <comment>Ordering of the case types</comment> |
| 76 | <add>4.5</add> |
| 77 | </field> |
| 78 | <field> |
| 79 | <name>definition</name> |
| 80 | <title>Case Type Definition</title> |
| 81 | <type>blob</type> |
| 82 | <comment>xml definition of case type</comment> |
| 83 | <add>4.5</add> |
| 84 | </field> |
| 85 | </table> |