CRM-13497 - getting there on main tables
[civicrm-core.git] / xml / schema / Dedupe / RuleGroup.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <table>
3 <base>CRM/Dedupe</base>
4 <class>RuleGroup</class>
5 <name>civicrm_dedupe_rule_group</name>
6 <comment>Dedupe rule groups</comment>
7 <add>1.8</add>
8 <field>
9 <name>id</name>
10 <type>int unsigned</type>
11 <required>true</required>
12 <comment>Unique dedupe rule group id</comment>
13 <add>1.8</add>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>true</autoincrement>
18 </primaryKey>
19 <field>
20 <name>contact_type</name>
21 <type>enum</type>
22 <values>Individual, Organization, Household</values>
23 <comment>The type of contacts this group applies to</comment>
24 <add>1.8</add>
25 <html>
26 <type>Select</type>
27 </html>
28 </field>
29 <field>
30 <name>threshold</name>
31 <type>int</type>
32 <required>true</required>
33 <comment>The weight threshold the sum of the rule weights has to cross to consider two contacts the same</comment>
34 <add>1.8</add>
35 </field>
36 <field>
37 <name>level</name>
38 <type>enum</type>
39 <values>Strict, Fuzzy</values>
40 <comment>Whether the rule should be used for cases where strict maching of the given contact type is required or a fuzzy one</comment>
41 <add>2.1</add>
42 <drop>4.3</drop>
43 </field>
44 <field>
45 <name>used</name>
46 <type>enum</type>
47 <values>Unsupervised, Supervised, General</values>
48 <required>true</required>
49 <comment>Whether the rule should be used for cases where usage is Unsupervised, Supervised OR General(programatically)</comment>
50 <add>4.3</add>
51 <html>
52 <type>Select</type>
53 </html>
54 </field>
55 <field>
56 <name>is_default</name>
57 <type>boolean</type>
58 <comment>Is this a default rule (one rule for every contact type + level combination should be default)</comment>
59 <add>2.1</add>
60 <drop>4.3</drop>
61 </field>
62 <field>
63 <name>name</name>
64 <type>varchar</type>
65 <length>64</length>
66 <comment>Name of the rule group</comment>
67 <add>2.1</add>
68 </field>
69 <field>
70 <name>title</name>
71 <type>varchar</type>
72 <length>255</length>
73 <comment>Label of the rule group</comment>
74 <add>4.1</add>
75 </field>
76 <field>
77 <name>is_reserved</name>
78 <type>boolean</type>
79 <comment>Is this a reserved rule - a rule group that has been optimized and cannot be changed by the admin</comment>
80 <add>4.1</add>
81 </field>
82 </table>