Merge pull request #13051 from mlutfy/customvalue-checkbox-display
[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 <title>Rule Group ID</title>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Unique dedupe rule group id</comment>
14 <add>1.8</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>contact_type</name>
22 <title>Contact Type</title>
23 <type>varchar</type>
24 <length>12</length>
25 <comment>The type of contacts this group applies to</comment>
26 <pseudoconstant>
27 <table>civicrm_contact_type</table>
28 <keyColumn>name</keyColumn>
29 <labelColumn>label</labelColumn>
30 <condition>parent_id IS NULL</condition>
31 </pseudoconstant>
32 <add>1.8</add>
33 <html>
34 <type>Select</type>
35 </html>
36 </field>
37 <field>
38 <name>threshold</name>
39 <title>Threshold</title>
40 <type>int</type>
41 <required>true</required>
42 <comment>The weight threshold the sum of the rule weights has to cross to consider two contacts the same</comment>
43 <add>1.8</add>
44 <html>
45 <type>Text</type>
46 </html>
47 </field>
48 <field>
49 <name>level</name>
50 <title>Level</title>
51 <type>enum</type>
52 <values>Strict, Fuzzy</values>
53 <comment>Whether the rule should be used for cases where strict matching of the given contact type is required or a fuzzy one</comment>
54 <add>2.1</add>
55 <drop>4.3</drop>
56 </field>
57 <field>
58 <name>used</name>
59 <type>varchar</type>
60 <title>Length</title>
61 <length>12</length>
62 <required>true</required>
63 <comment>Whether the rule should be used for cases where usage is Unsupervised, Supervised OR General(programatically)</comment>
64 <pseudoconstant>
65 <callback>CRM_Core_SelectValues::getDedupeRuleTypes</callback>
66 </pseudoconstant>
67 <add>4.3</add>
68 <html>
69 <type>Radio</type>
70 </html>
71 </field>
72 <field>
73 <name>is_default</name>
74 <title>Default></title>
75 <type>boolean</type>
76 <comment>Is this a default rule (one rule for every contact type + level combination should be default)</comment>
77 <add>2.1</add>
78 <drop>4.3</drop>
79 </field>
80 <field>
81 <name>name</name>
82 <title>Name</title>
83 <type>varchar</type>
84 <length>64</length>
85 <comment>Name of the rule group</comment>
86 <add>2.1</add>
87 </field>
88 <field>
89 <name>title</name>
90 <title>Title</title>
91 <type>varchar</type>
92 <length>255</length>
93 <comment>Label of the rule group</comment>
94 <add>4.1</add>
95 <html>
96 <type>Text</type>
97 </html>
98 </field>
99 <field>
100 <name>is_reserved</name>
101 <title>Reserved?</title>
102 <type>boolean</type>
103 <comment>Is this a reserved rule - a rule group that has been optimized and cannot be changed by the admin</comment>
104 <add>4.1</add>
105 <html>
106 <type>CheckBox</type>
107 </html>
108 </field>
109 </table>