CRM-13497 - Move rows and cols
[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>
d34dbf05
KJ
42 <name>label_format_name</name>
43 <type>varchar</type>
44 <length>255</length>
636f1cbe
KJ
45 <pseudoconstant>
46 <optionGroupName>name_badge</optionGroupName>
47 </pseudoconstant>
d34dbf05 48 <comment>This refers to name column of civicrm_option_value row in name_badge option group</comment>
bc91fa05
KJ
49 <add>4.4</add>
50 </field>
51 <field>
52 <name>label_type_id</name>
53 <type>int unsigned</type>
636f1cbe
KJ
54 <pseudoconstant>
55 <optionGroupName>label_type</optionGroupName>
56 </pseudoconstant>
bc91fa05
KJ
57 <comment>Implicit FK to civicrm_option_value row in NEW label_type option group</comment>
58 <add>4.4</add>
59 </field>
60 <field>
61 <name>data</name>
62 <type>longtext</type>
63 <comment>contains json encode configurations options</comment>
64 <add>4.4</add>
65 </field>
bc91fa05
KJ
66 <field>
67 <name>is_default</name>
68 <type>boolean</type>
69 <default>1</default>
70 <comment>Is this default?</comment>
71 <add>4.4</add>
72 </field>
73 <field>
74 <name>is_active</name>
75 <type>boolean</type>
76 <default>1</default>
77 <comment>Is this option active?</comment>
78 <add>4.4</add>
79 </field>
80 <field>
81 <name>is_reserved</name>
82 <type>boolean</type>
83 <default>1</default>
84 <comment>Is this reserved label?</comment>
85 <add>4.4</add>
86 </field>
87 <field>
88 <name>created_id</name>
89 <type>int unsigned</type>
90 <title>Created By Contact ID</title>
91 <comment>FK to civicrm_contact, who created this label layout</comment>
92 <add>4.4</add>
93 </field>
94 <foreignKey>
95 <name>created_id</name>
96 <table>civicrm_contact</table>
97 <key>id</key>
98 <add>4.4</add>
99 <onDelete>SET NULL</onDelete>
100 </foreignKey>
101</table>