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