Commit | Line | Data |
---|---|---|
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> | |
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> | |
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> | |
74 | </field> | |
bc91fa05 KJ |
75 | <field> |
76 | <name>is_default</name> | |
0d94665e | 77 | <title>Label is Default?</title> |
bc91fa05 KJ |
78 | <type>boolean</type> |
79 | <default>1</default> | |
80 | <comment>Is this default?</comment> | |
81 | <add>4.4</add> | |
82 | </field> | |
83 | <field> | |
84 | <name>is_active</name> | |
0d94665e | 85 | <title>Label Is Active?</title> |
bc91fa05 KJ |
86 | <type>boolean</type> |
87 | <default>1</default> | |
88 | <comment>Is this option active?</comment> | |
89 | <add>4.4</add> | |
90 | </field> | |
91 | <field> | |
92 | <name>is_reserved</name> | |
0d94665e | 93 | <title>Is Label Reserved?</title> |
bc91fa05 KJ |
94 | <type>boolean</type> |
95 | <default>1</default> | |
96 | <comment>Is this reserved label?</comment> | |
97 | <add>4.4</add> | |
98 | </field> | |
99 | <field> | |
100 | <name>created_id</name> | |
0d94665e | 101 | <title>Label Created By</title> |
bc91fa05 KJ |
102 | <type>int unsigned</type> |
103 | <title>Created By Contact ID</title> | |
104 | <comment>FK to civicrm_contact, who created this label layout</comment> | |
105 | <add>4.4</add> | |
106 | </field> | |
107 | <foreignKey> | |
108 | <name>created_id</name> | |
109 | <table>civicrm_contact</table> | |
110 | <key>id</key> | |
111 | <add>4.4</add> | |
112 | <onDelete>SET NULL</onDelete> | |
113 | </foreignKey> | |
114 | </table> |