Merge pull request #1032 from ravishnair/CRM-12823
[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>
11 <type>int unsigned</type>
12 <required>true</required>
13 <add>4.4</add>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>true</autoincrement>
18 </primaryKey>
19 <field>
20 <name>title</name>
21 <title>Title</title>
22 <type>varchar</type>
23 <length>255</length>
24 <comment>User title for for this label layout</comment>
25 <add>4.4</add>
26 </field>
27 <field>
28 <name>name</name>
29 <title>Name</title>
30 <type>varchar</type>
31 <length>255</length>
32 <comment>variable name/programmatic handle for this field.</comment>
33 <add>4.4</add>
34 </field>
35 <field>
36 <name>description</name>
37 <type>text</type>
38 <comment>Description of this label layout</comment>
39 <add>4.4</add>
40 </field>
41 <field>
42 <name>label_format_id</name>
43 <type>int unsigned</type>
636f1cbe
KJ
44 <pseudoconstant>
45 <optionGroupName>name_badge</optionGroupName>
46 </pseudoconstant>
47 <comment>Implicit FK to civicrm_option_value row in name_badge option group</comment>
bc91fa05
KJ
48 <add>4.4</add>
49 </field>
50 <field>
51 <name>label_type_id</name>
52 <type>int unsigned</type>
636f1cbe
KJ
53 <pseudoconstant>
54 <optionGroupName>label_type</optionGroupName>
55 </pseudoconstant>
bc91fa05
KJ
56 <comment>Implicit FK to civicrm_option_value row in NEW label_type option group</comment>
57 <add>4.4</add>
58 </field>
59 <field>
60 <name>data</name>
61 <type>longtext</type>
62 <comment>contains json encode configurations options</comment>
63 <add>4.4</add>
64 </field>
65 <field>
66 <name>html</name>
67 <type>longtext</type>
68 <comment>Label contents in HTML format with tokens and image file references</comment>
69 <add>4.4</add>
70 </field>
71 <field>
72 <name>is_default</name>
73 <type>boolean</type>
74 <default>1</default>
75 <comment>Is this default?</comment>
76 <add>4.4</add>
77 </field>
78 <field>
79 <name>is_active</name>
80 <type>boolean</type>
81 <default>1</default>
82 <comment>Is this option active?</comment>
83 <add>4.4</add>
84 </field>
85 <field>
86 <name>is_reserved</name>
87 <type>boolean</type>
88 <default>1</default>
89 <comment>Is this reserved label?</comment>
90 <add>4.4</add>
91 </field>
92 <field>
93 <name>created_id</name>
94 <type>int unsigned</type>
95 <title>Created By Contact ID</title>
96 <comment>FK to civicrm_contact, who created this label layout</comment>
97 <add>4.4</add>
98 </field>
99 <foreignKey>
100 <name>created_id</name>
101 <table>civicrm_contact</table>
102 <key>id</key>
103 <add>4.4</add>
104 <onDelete>SET NULL</onDelete>
105 </foreignKey>
106</table>