CRM-15735 fix - Update payment status for pay-later membership renewal ignores Receiv...
[civicrm-core.git] / xml / schema / Core / Email.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Core</base>
5 <class>Email</class>
6 <name>civicrm_email</name>
7 <comment>Email information for a specific location.</comment>
8 <add>1.1</add>
9 <log>true</log>
10 <field>
ebc23aab 11 <name>id</name>
53780a9b 12 <title>Email ID</title>
ebc23aab
EM
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>Unique Email ID</comment>
16 <add>1.1</add>
6a488035
TO
17 </field>
18 <primaryKey>
ebc23aab
EM
19 <name>id</name>
20 <autoincrement>true</autoincrement>
6a488035
TO
21 </primaryKey>
22 <field>
ebc23aab 23 <name>contact_id</name>
53780a9b 24 <title>Email Contact</title>
ebc23aab
EM
25 <type>int unsigned</type>
26 <comment>FK to Contact ID</comment>
27 <add>2.0</add>
6a488035
TO
28 </field>
29 <foreignKey>
ebc23aab
EM
30 <name>contact_id</name>
31 <table>civicrm_contact</table>
32 <key>id</key>
33 <add>2.0</add>
34 <onDelete>CASCADE</onDelete>
6a488035
TO
35 </foreignKey>
36 <field>
ebc23aab
EM
37 <name>location_type_id</name>
38 <title>Email Location Type</title>
39 <type>int unsigned</type>
40 <comment>Which Location does this email belong to.</comment>
41 <add>2.0</add>
42 <pseudoconstant>
43 <table>civicrm_location_type</table>
44 <keyColumn>id</keyColumn>
45 <labelColumn>display_name</labelColumn>
46 </pseudoconstant>
47 <html>
48 <type>Select</type>
49 </html>
6a488035
TO
50 </field>
51 <index>
52 <name>index_location_type</name>
53 <fieldName>location_type_id</fieldName>
54 <add>2.0</add>
55 </index>
56 <field>
ebc23aab 57 <name>email</name>
53780a9b 58 <title>Email</title>
ebc23aab
EM
59 <type>varchar</type>
60 <length>254</length>
61 <html>
62 <type>Text</type>
63 <size>MEDIUM</size>
64 </html>
65 <import>true</import>
66 <headerPattern>/e.?mail/i</headerPattern>
67 <dataPattern>/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/</dataPattern>
68 <rule>email</rule>
69 <comment>Email address</comment>
70 <add>1.1</add>
6a488035
TO
71 </field>
72 <index>
ebc23aab
EM
73 <name>UI_email</name>
74 <fieldName>email</fieldName>
75 <add>1.5</add>
6a488035
TO
76 </index>
77 <field>
ebc23aab
EM
78 <name>is_primary</name>
79 <type>boolean</type>
80 <default>0</default>
81 <comment>Is this the primary email for this contact and location.</comment>
82 <add>1.1</add>
6a488035
TO
83 </field>
84 <field>
ebc23aab 85 <name>is_primary</name>
53780a9b 86 <title>Is Primary email</title>
ebc23aab
EM
87 <type>boolean</type>
88 <default>0</default>
89 <comment>Is this the primary?</comment>
90 <add>2.0</add>
6a488035
TO
91 </field>
92 <index>
93 <name>index_is_primary</name>
94 <fieldName>is_primary</fieldName>
95 <add>2.0</add>
96 </index>
97 <field>
ebc23aab 98 <name>is_billing</name>
53780a9b 99 <title>Is Billing Email?</title>
ebc23aab
EM
100 <type>boolean</type>
101 <default>0</default>
102 <comment>Is this the billing?</comment>
103 <add>2.0</add>
6a488035
TO
104 </field>
105 <index>
106 <name>index_is_billing</name>
107 <fieldName>is_billing</fieldName>
108 <add>2.0</add>
109 </index>
110 <field>
111 <name>on_hold</name>
112 <export>true</export>
113 <type>boolean</type>
114 <default>0</default>
115 <required>true</required>
116 <comment>Is this address on bounce hold?</comment>
117 <add>1.1</add>
118 </field>
119 <field>
120 <name>is_bulkmail</name>
121 <title>Use for Bulk Mail</title>
122 <export>true</export>
123 <type>boolean</type>
124 <default>0</default>
125 <required>true</required>
126 <comment>Is this address for bulk mail ?</comment>
127 <add>1.9</add>
128 </field>
129 <field>
130 <name>hold_date</name>
131 <type>datetime</type>
132 <comment>When the address went on bounce hold</comment>
133 <add>1.1</add>
134 </field>
135 <field>
136 <name>reset_date</name>
137 <type>datetime</type>
138 <comment>When the address bounce status was last reset</comment>
139 <add>1.1</add>
140 </field>
141 <field>
142 <name>signature_text</name>
143 <type>text</type>
144 <import>true</import>
145 <default>NULL</default>
146 <comment>Text formatted signature for the email.</comment>
147 <add>3.2</add>
148 </field>
149 <field>
150 <name>signature_html</name>
151 <type>text</type>
152 <import>true</import>
153 <default>NULL</default>
154 <comment>HTML formatted signature for the email.</comment>
155 <add>3.2</add>
156 </field>
157</table>