Merge pull request #19525 from eileenmcnaughton/member_soft
[civicrm-core.git] / xml / schema / Dedupe / RuleGroup.xml
CommitLineData
6a488035
TO
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>
f3ea5182 10 <title>Rule Group ID</title>
6a488035
TO
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Unique dedupe rule group id</comment>
0481e12c
A
14 <html>
15 <type>Number</type>
16 </html>
6a488035
TO
17 <add>1.8</add>
18 </field>
19 <primaryKey>
20 <name>id</name>
21 <autoincrement>true</autoincrement>
22 </primaryKey>
23 <field>
24 <name>contact_type</name>
f3ea5182 25 <title>Contact Type</title>
909ca5f6 26 <type>varchar</type>
27 <length>12</length>
6a488035 28 <comment>The type of contacts this group applies to</comment>
71a707c3 29 <pseudoconstant>
30 <table>civicrm_contact_type</table>
31 <keyColumn>name</keyColumn>
32 <labelColumn>label</labelColumn>
33 <condition>parent_id IS NULL</condition>
34 </pseudoconstant>
6a488035 35 <add>1.8</add>
614d72ec 36 <html>
37 <type>Select</type>
38 </html>
6a488035
TO
39 </field>
40 <field>
41 <name>threshold</name>
f3ea5182 42 <title>Threshold</title>
6a488035
TO
43 <type>int</type>
44 <required>true</required>
45 <comment>The weight threshold the sum of the rule weights has to cross to consider two contacts the same</comment>
46 <add>1.8</add>
a4969aee
TM
47 <html>
48 <type>Text</type>
49 </html>
6a488035 50 </field>
6a488035
TO
51 <field>
52 <name>used</name>
909ca5f6 53 <type>varchar</type>
f3ea5182 54 <title>Length</title>
909ca5f6 55 <length>12</length>
6a488035
TO
56 <required>true</required>
57 <comment>Whether the rule should be used for cases where usage is Unsupervised, Supervised OR General(programatically)</comment>
71a707c3 58 <pseudoconstant>
93bfa565 59 <callback>CRM_Core_SelectValues::getDedupeRuleTypes</callback>
71a707c3 60 </pseudoconstant>
6a488035 61 <add>4.3</add>
614d72ec 62 <html>
72c010fd 63 <type>Radio</type>
614d72ec 64 </html>
6a488035 65 </field>
6a488035
TO
66 <field>
67 <name>name</name>
f3ea5182 68 <title>Name</title>
6a488035
TO
69 <type>varchar</type>
70 <length>64</length>
71 <comment>Name of the rule group</comment>
72 <add>2.1</add>
73 </field>
74 <field>
75 <name>title</name>
f3ea5182 76 <title>Title</title>
6a488035
TO
77 <type>varchar</type>
78 <length>255</length>
79 <comment>Label of the rule group</comment>
80 <add>4.1</add>
a4969aee
TM
81 <html>
82 <type>Text</type>
83 </html>
6a488035
TO
84 </field>
85 <field>
86 <name>is_reserved</name>
f3ea5182 87 <title>Reserved?</title>
6a488035
TO
88 <type>boolean</type>
89 <comment>Is this a reserved rule - a rule group that has been optimized and cannot be changed by the admin</comment>
90 <add>4.1</add>
a4969aee
TM
91 <html>
92 <type>CheckBox</type>
93 </html>
6a488035
TO
94 </field>
95</table>