Merge pull request #16733 from eileenmcnaughton/smarty
[civicrm-core.git] / xml / schema / Dedupe / Rule.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <table>
3 <base>CRM/Dedupe</base>
4 <class>Rule</class>
5 <name>civicrm_dedupe_rule</name>
6 <comment>Dedupe rules for use by rule groups</comment>
7 <add>1.8</add>
8 <field>
9 <name>id</name>
10 <title>Dedupe Rule ID</title>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Unique dedupe rule 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>dedupe_rule_group_id</name>
22 <title>Dedupe Rule Group</title>
23 <type>int unsigned</type>
24 <required>true</required>
25 <comment>The id of the rule group this rule belongs to</comment>
26 <add>1.8</add>
27 </field>
28 <foreignKey>
29 <name>dedupe_rule_group_id</name>
30 <table>civicrm_dedupe_rule_group</table>
31 <key>id</key>
32 <add>1.8</add>
33 </foreignKey>
34 <field>
35 <name>rule_table</name>
36 <title>Rule Table</title>
37 <type>varchar</type>
38 <length>64</length>
39 <required>true</required>
40 <comment>The name of the table this rule is about</comment>
41 <add>1.8</add>
42 </field>
43 <field>
44 <name>rule_field</name>
45 <title>Rule Field</title>
46 <type>varchar</type>
47 <length>64</length>
48 <required>true</required>
49 <comment>The name of the field of the table referenced in rule_table</comment>
50 <add>1.8</add>
51 </field>
52 <field>
53 <name>rule_length</name>
54 <title>Rule Length</title>
55 <type>int unsigned</type>
56 <comment>The length of the matching substring</comment>
57 <add>1.8</add>
58 <html>
59 <type>Text</type>
60 </html>
61 </field>
62 <field>
63 <name>rule_weight</name>
64 <title>Order</title>
65 <type>int</type>
66 <required>true</required>
67 <comment>The weight of the rule</comment>
68 <add>1.8</add>
69 <html>
70 <type>Text</type>
71 </html>
72 </field>
73 </table>