Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Core</base> | |
5 | <class>Tag</class> | |
6 | <name>civicrm_tag</name> | |
7 | <comment>Provides support for flat or hierarchical classification of various types of entities (contacts, groups, actions...).</comment> | |
8 | <add>1.1</add> | |
9 | <log>true</log> | |
10 | <field> | |
11 | <name>id</name> | |
12 | <type>int unsigned</type> | |
13 | <required>true</required> | |
14 | <comment>Tag ID</comment> | |
15 | <add>1.1</add> | |
16 | </field> | |
17 | <primaryKey> | |
18 | <name>id</name> | |
19 | <autoincrement>true</autoincrement> | |
20 | </primaryKey> | |
21 | <field> | |
22 | <name>name</name> | |
4c863787 | 23 | <title>Tag Name</title> |
6a488035 TO |
24 | <type>varchar</type> |
25 | <required>true</required> | |
26 | <length>64</length> | |
27 | <comment>Name of Tag.</comment> | |
28 | <add>1.1</add> | |
29 | </field> | |
30 | <field> | |
31 | <name>description</name> | |
4c863787 | 32 | <title>Description</title> |
6a488035 TO |
33 | <type>varchar</type> |
34 | <length>255</length> | |
35 | <comment>Optional verbose description of the tag.</comment> | |
36 | <add>1.1</add> | |
37 | </field> | |
38 | <field> | |
39 | <name>parent_id</name> | |
4c863787 | 40 | <title>Parent Tag</title> |
6a488035 TO |
41 | <type>int unsigned</type> |
42 | <default>NULL</default> | |
43 | <comment>Optional parent id for this tag.</comment> | |
44 | <add>1.1</add> | |
45 | </field> | |
46 | <field> | |
47 | <name>is_selectable</name> | |
48 | <type>boolean</type> | |
49 | <default>1</default> | |
50 | <comment>Is this tag selectable / displayed</comment> | |
51 | <add>2.1</add> | |
52 | </field> | |
53 | <foreignKey> | |
54 | <name>parent_id</name> | |
55 | <table>civicrm_tag</table> | |
56 | <key>id</key> | |
57 | <add>1.1</add> | |
58 | </foreignKey> | |
59 | <index> | |
60 | <name>UI_name</name> | |
61 | <fieldName>name</fieldName> | |
62 | <unique>true</unique> | |
63 | <add>2.1</add> | |
64 | </index> | |
65 | <field> | |
66 | <name>is_reserved</name> | |
4c863787 | 67 | <title>Reserved</title> |
6a488035 TO |
68 | <type>boolean</type> |
69 | <default>0</default> | |
70 | <add>3.2</add> | |
71 | </field> | |
72 | <field> | |
73 | <name>is_tagset</name> | |
4c863787 | 74 | <title>Tagset</title> |
6a488035 TO |
75 | <type>boolean</type> |
76 | <default>0</default> | |
77 | <add>3.2</add> | |
78 | </field> | |
79 | <field> | |
80 | <name>used_for</name> | |
4c863787 | 81 | <title>Used For</title> |
6a488035 TO |
82 | <type>varchar</type> |
83 | <length>64</length> | |
84 | <default>NULL</default> | |
4c863787 CW |
85 | <html> |
86 | <type>Select</type> | |
87 | </html> | |
88 | <pseudoconstant> | |
89 | <optionGroupName>tag_used_for</optionGroupName> | |
90 | </pseudoconstant> | |
6a488035 TO |
91 | <add>3.2</add> |
92 | </field> | |
93 | <field> | |
94 | <name>created_id</name> | |
95 | <type>int unsigned</type> | |
96 | <comment>FK to civicrm_contact, who created this tag</comment> | |
97 | <add>3.4</add> | |
98 | </field> | |
99 | <foreignKey> | |
100 | <name>created_id</name> | |
101 | <table>civicrm_contact</table> | |
102 | <key>id</key> | |
103 | <add>3.4</add> | |
104 | <onDelete>SET NULL</onDelete> | |
105 | </foreignKey> | |
106 | <field> | |
107 | <name>created_date</name> | |
108 | <type>datetime</type> | |
109 | <title>Tag Created Date</title> | |
110 | <comment>Date and time that tag was created.</comment> | |
111 | <add>3.4</add> | |
112 | </field> | |
113 | </table> |