Merge pull request #22154 from eileenmcnaughton/n3
[civicrm-core.git] / xml / schema / Mailing / MailingAB.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Mailing</base>
5 <class>MailingAB</class>
6 <name>civicrm_mailing_abtest</name>
7 <comment>Stores information about abtesting</comment>
8 <archive>true</archive>
9 <component>CiviMail</component>
10 <field>
11 <name>id</name>
12 <type>int unsigned</type>
13 <title>MailingAB ID</title>
14 <required>true</required>
15 <html>
16 <type>Number</type>
17 </html>
18 </field>
19 <primaryKey>
20 <name>id</name>
21 <autoincrement>true</autoincrement>
22 </primaryKey>
23 <field>
24 <name>name</name>
25 <type>varchar</type>
26 <length>128</length>
27 <title>Name</title>
28 <comment>Name of the A/B test</comment>
29 <add>4.6</add>
30 </field>
31 <field>
32 <name>status</name>
33 <type>varchar</type>
34 <length>32</length>
35 <title>Status</title>
36 <comment>Status</comment>
37 <pseudoconstant>
38 <callback>CRM_Mailing_PseudoConstant::abStatus</callback>
39 </pseudoconstant>
40 <add>4.6</add>
41 </field>
42 <field>
43 <name>mailing_id_a</name>
44 <type>int unsigned</type>
45 <title>Mailing ID (A)</title>
46 <comment>The first experimental mailing ("A" condition)</comment>
47 <add>4.6</add>
48 </field>
49 <field>
50 <name>mailing_id_b</name>
51 <type>int unsigned</type>
52 <title>Mailing ID (B)</title>
53 <comment>The second experimental mailing ("B" condition)</comment>
54 <add>4.6</add>
55 </field>
56 <field>
57 <name>mailing_id_c</name>
58 <type>int unsigned</type>
59 <title>Mailing ID (C)</title>
60 <comment>The final, general mailing (derived from A or B)</comment>
61 <add>4.6</add>
62 </field>
63 <field>
64 <name>domain_id</name>
65 <type>int unsigned</type>
66 <title>Domain ID</title>
67 <comment>Which site is this mailing for</comment>
68 <add>4.6</add>
69 <required>true</required>
70 </field>
71 <field>
72 <name>testing_criteria</name>
73 <type>varchar</type>
74 <length>32</length>
75 <title>Testing Criteria</title>
76 <pseudoconstant>
77 <callback>CRM_Mailing_PseudoConstant::abTestCriteria</callback>
78 </pseudoconstant>
79 <add>4.6</add>
80 </field>
81 <field>
82 <name>winner_criteria</name>
83 <type>varchar</type>
84 <length>32</length>
85 <title>Winner Criteria</title>
86 <pseudoconstant>
87 <callback>CRM_Mailing_PseudoConstant::abWinnerCriteria</callback>
88 </pseudoconstant>
89 <add>4.6</add>
90 </field>
91 <field>
92 <name>specific_url</name>
93 <type>varchar</type>
94 <title>URL for Winner Criteria</title>
95 <length>255</length>
96 <comment>What specific url to track</comment>
97 <add>4.6</add>
98 </field>
99 <field>
100 <name>declare_winning_time</name>
101 <type>datetime</type>
102 <title>Declaration Time</title>
103 <comment>In how much time to declare winner</comment>
104 <add>4.6</add>
105 </field>
106 <field>
107 <name>group_percentage</name>
108 <type>int unsigned</type>
109 <title>Group Percentage</title>
110 <add>4.6</add>
111 </field>
112 <field>
113 <name>created_id</name>
114 <title>Created By Contact ID</title>
115 <type>int unsigned</type>
116 <comment>FK to Contact ID</comment>
117 <html>
118 <label>Created By</label>
119 </html>
120 <add>4.6</add>
121 </field>
122 <foreignKey>
123 <name>created_id</name>
124 <table>civicrm_contact</table>
125 <key>id</key>
126 <add>4.6</add>
127 <onDelete>SET NULL</onDelete>
128 </foreignKey>
129 <field>
130 <name>created_date</name>
131 <title>AB Test Created Date</title>
132 <type>timestamp</type>
133 <required>false</required>
134 <default>CURRENT_TIMESTAMP</default>
135 <comment>When was this item created</comment>
136 <add>4.6</add>
137 <html>
138 <type>Select Date</type>
139 <formatType>mailing</formatType>
140 </html>
141 </field>
142 </table>