Merge pull request #17209 from civicrm/5.25
[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 <pseudoconstant>
39 <table>civicrm_location_type</table>
40 <keyColumn>id</keyColumn>
41 <labelColumn>display_name</labelColumn>
42 </pseudoconstant>
43 <comment>Which Location does this email belong to.</comment>
44 <add>2.0</add>
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>openid</name>
53 <title>OpenID</title>
54 <type>varchar</type>
55 <length>255</length>
56 <import>true</import>
57 <headerPattern>/^Open.?ID|u(niq\w*)?.?ID/i</headerPattern>
58 <dataPattern>/^[\w\/\:\.]+$/</dataPattern>
59 <comment>the OpenID (or OpenID-style http://username.domain/) unique identifier for this contact mainly used for logging in to CiviCRM</comment>
60 <rule>url</rule>
61 <comment>OpenID</comment>
62 <add>2.0</add>
63 </field>
64 <index>
65 <name>UI_openid</name>
66 <fieldName>openid</fieldName>
67 <unique>true</unique>
68 <add>2.0</add>
69 </index>
70 <field>
71 <name>allowed_to_login</name>
72 <title>Allowed to login?</title>
73 <type>boolean</type>
74 <required>true</required>
75 <default>0</default>
76 <comment>Whether or not this user is allowed to login</comment>
77 <add>2.0</add>
78 </field>
79 <field>
80 <name>is_primary</name>
81 <title>Primary ID</title>
82 <type>boolean</type>
83 <default>0</default>
84 <html>
85 <type>Radio</type>
86 </html>
87 <comment>Is this the primary email for this contact and location.</comment>
88 <add>2.0</add>
89 </field>
90 </table>