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> | |
0481e12c A |
14 | <html> |
15 | <type>Number</type> | |
16 | </html> | |
bc91fa05 KJ |
17 | <add>4.4</add> |
18 | </field> | |
19 | <primaryKey> | |
20 | <name>id</name> | |
21 | <autoincrement>true</autoincrement> | |
22 | </primaryKey> | |
23 | <field> | |
24 | <name>title</name> | |
25 | <title>Title</title> | |
26 | <type>varchar</type> | |
27 | <length>255</length> | |
01d214aa | 28 | <comment>User title for this label layout</comment> |
bc91fa05 KJ |
29 | <add>4.4</add> |
30 | </field> | |
31 | <field> | |
32 | <name>name</name> | |
33 | <title>Name</title> | |
34 | <type>varchar</type> | |
35 | <length>255</length> | |
36 | <comment>variable name/programmatic handle for this field.</comment> | |
37 | <add>4.4</add> | |
38 | </field> | |
39 | <field> | |
40 | <name>description</name> | |
41 | <type>text</type> | |
42 | <comment>Description of this label layout</comment> | |
1662d426 A |
43 | <html> |
44 | <label>Description</label> | |
45 | </html> | |
bc91fa05 KJ |
46 | <add>4.4</add> |
47 | </field> | |
48 | <field> | |
d34dbf05 | 49 | <name>label_format_name</name> |
0d94665e | 50 | <title>Label Format</title> |
d34dbf05 KJ |
51 | <type>varchar</type> |
52 | <length>255</length> | |
636f1cbe KJ |
53 | <pseudoconstant> |
54 | <optionGroupName>name_badge</optionGroupName> | |
55 | </pseudoconstant> | |
614d72ec | 56 | <html> |
e0991796 | 57 | <type>Select</type> |
614d72ec | 58 | </html> |
d34dbf05 | 59 | <comment>This refers to name column of civicrm_option_value row in name_badge option group</comment> |
bc91fa05 KJ |
60 | <add>4.4</add> |
61 | </field> | |
62 | <field> | |
63 | <name>label_type_id</name> | |
0d94665e | 64 | <title>Label Type</title> |
bc91fa05 | 65 | <type>int unsigned</type> |
636f1cbe KJ |
66 | <pseudoconstant> |
67 | <optionGroupName>label_type</optionGroupName> | |
68 | </pseudoconstant> | |
614d72ec | 69 | <html> |
e0991796 | 70 | <type>Select</type> |
614d72ec | 71 | </html> |
bc91fa05 KJ |
72 | <comment>Implicit FK to civicrm_option_value row in NEW label_type option group</comment> |
73 | <add>4.4</add> | |
74 | </field> | |
75 | <field> | |
76 | <name>data</name> | |
77 | <type>longtext</type> | |
78 | <comment>contains json encode configurations options</comment> | |
1662d426 A |
79 | <html> |
80 | <label>Data</label> | |
81 | </html> | |
bc91fa05 | 82 | <add>4.4</add> |
2a5c9b4d | 83 | <serialize>JSON</serialize> |
bc91fa05 | 84 | </field> |
bc91fa05 KJ |
85 | <field> |
86 | <name>is_default</name> | |
0d94665e | 87 | <title>Label is Default?</title> |
bc91fa05 KJ |
88 | <type>boolean</type> |
89 | <default>1</default> | |
90 | <comment>Is this default?</comment> | |
91 | <add>4.4</add> | |
92 | </field> | |
93 | <field> | |
94 | <name>is_active</name> | |
0d94665e | 95 | <title>Label Is Active?</title> |
bc91fa05 KJ |
96 | <type>boolean</type> |
97 | <default>1</default> | |
98 | <comment>Is this option active?</comment> | |
99 | <add>4.4</add> | |
100 | </field> | |
101 | <field> | |
102 | <name>is_reserved</name> | |
0d94665e | 103 | <title>Is Label Reserved?</title> |
bc91fa05 KJ |
104 | <type>boolean</type> |
105 | <default>1</default> | |
106 | <comment>Is this reserved label?</comment> | |
107 | <add>4.4</add> | |
108 | </field> | |
109 | <field> | |
110 | <name>created_id</name> | |
111 | <type>int unsigned</type> | |
112 | <title>Created By Contact ID</title> | |
113 | <comment>FK to civicrm_contact, who created this label layout</comment> | |
57e94608 | 114 | <html> |
f2c816af | 115 | <label>Created By</label> |
57e94608 | 116 | </html> |
bc91fa05 KJ |
117 | <add>4.4</add> |
118 | </field> | |
119 | <foreignKey> | |
120 | <name>created_id</name> | |
121 | <table>civicrm_contact</table> | |
122 | <key>id</key> | |
123 | <add>4.4</add> | |
124 | <onDelete>SET NULL</onDelete> | |
125 | </foreignKey> | |
126 | </table> |