Merge pull request #21943 from mattwire/gccacheignore
[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 <html>
15 <type>Number</type>
16 </html>
17 <add>4.4</add>
18 </field>
19 <primaryKey>
20 <name>id</name>
21 <autoincrement>true</autoincrement>
22 </primaryKey>
23 <field>
24 <name>title</name>
25 <title>Title</title>
26 <type>varchar</type>
27 <length>255</length>
28 <comment>User title for this label layout</comment>
29 <add>4.4</add>
30 </field>
31 <field>
32 <name>name</name>
33 <title>Name</title>
34 <type>varchar</type>
35 <length>255</length>
36 <comment>variable name/programmatic handle for this field.</comment>
37 <add>4.4</add>
38 </field>
39 <field>
40 <name>description</name>
41 <type>text</type>
42 <comment>Description of this label layout</comment>
43 <html>
44 <label>Description</label>
45 </html>
46 <add>4.4</add>
47 </field>
48 <field>
49 <name>label_format_name</name>
50 <title>Label Format</title>
51 <type>varchar</type>
52 <length>255</length>
53 <pseudoconstant>
54 <optionGroupName>name_badge</optionGroupName>
55 </pseudoconstant>
56 <html>
57 <type>Select</type>
58 </html>
59 <comment>This refers to name column of civicrm_option_value row in name_badge option group</comment>
60 <add>4.4</add>
61 </field>
62 <field>
63 <name>label_type_id</name>
64 <title>Label Type</title>
65 <type>int unsigned</type>
66 <pseudoconstant>
67 <optionGroupName>label_type</optionGroupName>
68 </pseudoconstant>
69 <html>
70 <type>Select</type>
71 </html>
72 <comment>Implicit FK to civicrm_option_value row in NEW label_type option group</comment>
73 <add>4.4</add>
74 </field>
75 <field>
76 <name>data</name>
77 <type>longtext</type>
78 <comment>contains json encode configurations options</comment>
79 <html>
80 <label>Data</label>
81 </html>
82 <add>4.4</add>
83 <serialize>JSON</serialize>
84 </field>
85 <field>
86 <name>is_default</name>
87 <title>Label is Default?</title>
88 <type>boolean</type>
89 <default>1</default>
90 <required>true</required>
91 <comment>Is this default?</comment>
92 <add>4.4</add>
93 </field>
94 <field>
95 <name>is_active</name>
96 <title>Label Is Active?</title>
97 <type>boolean</type>
98 <default>1</default>
99 <required>true</required>
100 <comment>Is this option active?</comment>
101 <add>4.4</add>
102 </field>
103 <field>
104 <name>is_reserved</name>
105 <title>Is Label Reserved?</title>
106 <type>boolean</type>
107 <default>1</default>
108 <required>true</required>
109 <comment>Is this reserved label?</comment>
110 <add>4.4</add>
111 </field>
112 <field>
113 <name>created_id</name>
114 <type>int unsigned</type>
115 <title>Created By Contact ID</title>
116 <comment>FK to civicrm_contact, who created this label layout</comment>
117 <html>
118 <label>Created By</label>
119 </html>
120 <add>4.4</add>
121 </field>
122 <foreignKey>
123 <name>created_id</name>
124 <table>civicrm_contact</table>
125 <key>id</key>
126 <add>4.4</add>
127 <onDelete>SET NULL</onDelete>
128 </foreignKey>
129 </table>