Merge pull request #18912 from yashodha/dev_2153
[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>used</name>
50 <type>varchar</type>
51 <title>Length</title>
52 <length>12</length>
53 <required>true</required>
54 <comment>Whether the rule should be used for cases where usage is Unsupervised, Supervised OR General(programatically)</comment>
55 <pseudoconstant>
56 <callback>CRM_Core_SelectValues::getDedupeRuleTypes</callback>
57 </pseudoconstant>
58 <add>4.3</add>
59 <html>
60 <type>Radio</type>
61 </html>
62 </field>
63 <field>
64 <name>name</name>
65 <title>Name</title>
66 <type>varchar</type>
67 <length>64</length>
68 <comment>Name of the rule group</comment>
69 <add>2.1</add>
70 </field>
71 <field>
72 <name>title</name>
73 <title>Title</title>
74 <type>varchar</type>
75 <length>255</length>
76 <comment>Label of the rule group</comment>
77 <add>4.1</add>
78 <html>
79 <type>Text</type>
80 </html>
81 </field>
82 <field>
83 <name>is_reserved</name>
84 <title>Reserved?</title>
85 <type>boolean</type>
86 <comment>Is this a reserved rule - a rule group that has been optimized and cannot be changed by the admin</comment>
87 <add>4.1</add>
88 <html>
89 <type>CheckBox</type>
90 </html>
91 </field>
92 </table>