Added support for more optionValue types in get() method, with corresponding tests...
[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>
11 <name>id</name>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Unique Email ID</comment>
15 <add>1.1</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>contact_id</name>
23 <type>int unsigned</type>
24 <comment>FK to Contact ID</comment>
25 <add>2.0</add>
26 </field>
27 <foreignKey>
28 <name>contact_id</name>
29 <table>civicrm_contact</table>
30 <key>id</key>
31 <add>2.0</add>
32 <onDelete>CASCADE</onDelete>
33 </foreignKey>
34 <field>
35 <name>location_type_id</name>
36 <title>Email Location Type</title>
37 <type>int unsigned</type>
38 <comment>Which Location does this email belong to.</comment>
398f49ab
AS
39 <add>2.0</add>
40 <pseudoconstant>
41 <table>civicrm_location_type</table>
42 <keyColumn>id</keyColumn>
43 <labelColumn>name</labelColumn>
44 </pseudoconstant>
6a488035
TO
45 </field>
46 <index>
47 <name>index_location_type</name>
48 <fieldName>location_type_id</fieldName>
49 <add>2.0</add>
50 </index>
51 <field>
52 <name>email</name>
53 <type>varchar</type>
54 <length>64</length>
55 <size>MEDIUM</size>
56 <import>true</import>
57 <headerPattern>/e.?mail/i</headerPattern>
58 <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>
59 <rule>email</rule>
60 <comment>Email address</comment>
61 <add>1.1</add>
62 </field>
63 <index>
64 <name>UI_email</name>
65 <fieldName>email</fieldName>
66 <add>1.5</add>
67 </index>
68 <field>
69 <name>is_primary</name>
70 <type>boolean</type>
71 <default>0</default>
72 <comment>Is this the primary email for this contact and location.</comment>
73 <add>1.1</add>
74 </field>
75 <field>
76 <name>is_primary</name>
77 <type>boolean</type>
78 <default>0</default>
79 <comment>Is this the primary?</comment>
80 <add>2.0</add>
81 </field>
82 <index>
83 <name>index_is_primary</name>
84 <fieldName>is_primary</fieldName>
85 <add>2.0</add>
86 </index>
87 <field>
88 <name>is_billing</name>
89 <type>boolean</type>
90 <default>0</default>
91 <comment>Is this the billing?</comment>
92 <add>2.0</add>
93 </field>
94 <index>
95 <name>index_is_billing</name>
96 <fieldName>is_billing</fieldName>
97 <add>2.0</add>
98 </index>
99 <field>
100 <name>on_hold</name>
101 <export>true</export>
102 <type>boolean</type>
103 <default>0</default>
104 <required>true</required>
105 <comment>Is this address on bounce hold?</comment>
106 <add>1.1</add>
107 </field>
108 <field>
109 <name>is_bulkmail</name>
110 <title>Use for Bulk Mail</title>
111 <export>true</export>
112 <type>boolean</type>
113 <default>0</default>
114 <required>true</required>
115 <comment>Is this address for bulk mail ?</comment>
116 <add>1.9</add>
117 </field>
118 <field>
119 <name>hold_date</name>
120 <type>datetime</type>
121 <comment>When the address went on bounce hold</comment>
122 <add>1.1</add>
123 </field>
124 <field>
125 <name>reset_date</name>
126 <type>datetime</type>
127 <comment>When the address bounce status was last reset</comment>
128 <add>1.1</add>
129 </field>
130 <field>
131 <name>signature_text</name>
132 <type>text</type>
133 <import>true</import>
134 <default>NULL</default>
135 <comment>Text formatted signature for the email.</comment>
136 <add>3.2</add>
137 </field>
138 <field>
139 <name>signature_html</name>
140 <type>text</type>
141 <import>true</import>
142 <default>NULL</default>
143 <comment>HTML formatted signature for the email.</comment>
144 <add>3.2</add>
145 </field>
146</table>