reverted changes
[civicrm-core.git] / xml / schema / Core / OpenID.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2 <table>
3 <base>CRM/Core</base>
4 <class>OpenID</class>
5 <name>civicrm_openid</name>
6 <comment>OpenID information for a specific location.</comment>
7 <add>2.0</add>
8 <field>
9 <name>id</name>
10 <title>Open ID identifier</title>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Unique OpenID ID</comment>
14 <add>2.0</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>contact_id</name>
22 <title>OpenID Contact</title>
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>OpenID Location Type</title>
37 <type>int unsigned</type>
38 <comment>Which Location does this email belong to.</comment>
39 <add>2.0</add>
40 </field>
41 <index>
42 <name>index_location_type</name>
43 <fieldName>location_type_id</fieldName>
44 <add>2.0</add>
45 </index>
46 <field>
47 <name>openid</name>
48 <title>OpenID</title>
49 <type>varchar</type>
50 <length>255</length>
51 <import>true</import>
52 <headerPattern>/^Open.?ID|u(niq\w*)?.?ID/i</headerPattern>
53 <dataPattern>/^[\w\/\:\.]+$/</dataPattern>
54 <comment>the OpenID (or OpenID-style http://username.domain/) unique identifier for this contact mainly used for logging in to CiviCRM</comment>
55 <rule>url</rule>
56 <comment>OpenID</comment>
57 <add>2.0</add>
58 </field>
59 <index>
60 <name>UI_openid</name>
61 <fieldName>openid</fieldName>
62 <unique>true</unique>
63 <add>2.0</add>
64 </index>
65 <field>
66 <name>allowed_to_login</name>
67 <title>Allowed to login?</title>
68 <type>boolean</type>
69 <required>true</required>
70 <default>0</default>
71 <comment>Whether or not this user is allowed to login</comment>
72 <add>2.0</add>
73 </field>
74 <field>
75 <name>is_primary</name>
76 <title>Is OpenID Primary?</title>
77 <type>boolean</type>
78 <default>0</default>
79 <comment>Is this the primary email for this contact and location.</comment>
80 <add>2.0</add>
81 </field>
82 </table>