CRM-15168 a few more titles
[civicrm-core.git] / xml / schema / Core / PrintLabel.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>PrintLabel</class>
6 <name>civicrm_print_label</name>
7 <comment>Table to store the labels created by user.</comment>
8 <add>4.4</add>
9 <field>
10 <name>id</name>
11 <title>Print Label ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <add>4.4</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>title</name>
22 <title>Title</title>
23 <type>varchar</type>
24 <length>255</length>
25 <comment>User title for for this label layout</comment>
26 <add>4.4</add>
27 </field>
28 <field>
29 <name>name</name>
30 <title>Name</title>
31 <type>varchar</type>
32 <length>255</length>
33 <comment>variable name/programmatic handle for this field.</comment>
34 <add>4.4</add>
35 </field>
36 <field>
37 <name>description</name>
38 <type>text</type>
39 <comment>Description of this label layout</comment>
40 <add>4.4</add>
41 </field>
42 <field>
43 <name>label_format_name</name>
44 <type>varchar</type>
45 <length>255</length>
46 <pseudoconstant>
47 <optionGroupName>name_badge</optionGroupName>
48 </pseudoconstant>
49 <html>
50 <type>Select</type>
51 </html>
52 <comment>This refers to name column of civicrm_option_value row in name_badge option group</comment>
53 <add>4.4</add>
54 </field>
55 <field>
56 <name>label_type_id</name>
57 <type>int unsigned</type>
58 <pseudoconstant>
59 <optionGroupName>label_type</optionGroupName>
60 </pseudoconstant>
61 <html>
62 <type>Select</type>
63 </html>
64 <comment>Implicit FK to civicrm_option_value row in NEW label_type option group</comment>
65 <add>4.4</add>
66 </field>
67 <field>
68 <name>data</name>
69 <type>longtext</type>
70 <comment>contains json encode configurations options</comment>
71 <add>4.4</add>
72 </field>
73 <field>
74 <name>is_default</name>
75 <type>boolean</type>
76 <default>1</default>
77 <comment>Is this default?</comment>
78 <add>4.4</add>
79 </field>
80 <field>
81 <name>is_active</name>
82 <type>boolean</type>
83 <default>1</default>
84 <comment>Is this option active?</comment>
85 <add>4.4</add>
86 </field>
87 <field>
88 <name>is_reserved</name>
89 <type>boolean</type>
90 <default>1</default>
91 <comment>Is this reserved label?</comment>
92 <add>4.4</add>
93 </field>
94 <field>
95 <name>created_id</name>
96 <type>int unsigned</type>
97 <title>Created By Contact ID</title>
98 <comment>FK to civicrm_contact, who created this label layout</comment>
99 <add>4.4</add>
100 </field>
101 <foreignKey>
102 <name>created_id</name>
103 <table>civicrm_contact</table>
104 <key>id</key>
105 <add>4.4</add>
106 <onDelete>SET NULL</onDelete>
107 </foreignKey>
108 </table>