Merge pull request #16799 from pradpnayak/priceSetSchema
[civicrm-core.git] / xml / schema / Core / PrintLabel.xml
CommitLineData
bc91fa05
KJ
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>
7cd3d797 11 <title>Print Label ID</title>
bc91fa05
KJ
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>
01d214aa 25 <comment>User title for this label layout</comment>
bc91fa05
KJ
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>
d34dbf05 43 <name>label_format_name</name>
0d94665e 44 <title>Label Format</title>
d34dbf05
KJ
45 <type>varchar</type>
46 <length>255</length>
636f1cbe
KJ
47 <pseudoconstant>
48 <optionGroupName>name_badge</optionGroupName>
49 </pseudoconstant>
614d72ec 50 <html>
e0991796 51 <type>Select</type>
614d72ec 52 </html>
d34dbf05 53 <comment>This refers to name column of civicrm_option_value row in name_badge option group</comment>
bc91fa05
KJ
54 <add>4.4</add>
55 </field>
56 <field>
57 <name>label_type_id</name>
0d94665e 58 <title>Label Type</title>
bc91fa05 59 <type>int unsigned</type>
636f1cbe
KJ
60 <pseudoconstant>
61 <optionGroupName>label_type</optionGroupName>
62 </pseudoconstant>
614d72ec 63 <html>
e0991796 64 <type>Select</type>
614d72ec 65 </html>
bc91fa05
KJ
66 <comment>Implicit FK to civicrm_option_value row in NEW label_type option group</comment>
67 <add>4.4</add>
68 </field>
69 <field>
70 <name>data</name>
71 <type>longtext</type>
72 <comment>contains json encode configurations options</comment>
73 <add>4.4</add>
2a5c9b4d 74 <serialize>JSON</serialize>
bc91fa05 75 </field>
bc91fa05
KJ
76 <field>
77 <name>is_default</name>
0d94665e 78 <title>Label is Default?</title>
bc91fa05
KJ
79 <type>boolean</type>
80 <default>1</default>
81 <comment>Is this default?</comment>
82 <add>4.4</add>
83 </field>
84 <field>
85 <name>is_active</name>
0d94665e 86 <title>Label Is Active?</title>
bc91fa05
KJ
87 <type>boolean</type>
88 <default>1</default>
89 <comment>Is this option active?</comment>
90 <add>4.4</add>
91 </field>
92 <field>
93 <name>is_reserved</name>
0d94665e 94 <title>Is Label Reserved?</title>
bc91fa05
KJ
95 <type>boolean</type>
96 <default>1</default>
97 <comment>Is this reserved label?</comment>
98 <add>4.4</add>
99 </field>
100 <field>
101 <name>created_id</name>
0d94665e 102 <title>Label Created By</title>
bc91fa05
KJ
103 <type>int unsigned</type>
104 <title>Created By Contact ID</title>
105 <comment>FK to civicrm_contact, who created this label layout</comment>
106 <add>4.4</add>
107 </field>
108 <foreignKey>
109 <name>created_id</name>
110 <table>civicrm_contact</table>
111 <key>id</key>
112 <add>4.4</add>
113 <onDelete>SET NULL</onDelete>
114 </foreignKey>
115</table>