Merge pull request #15338 from totten/master-poc-postcommit
[civicrm-core.git] / xml / schema / Core / OpenID.xml
CommitLineData
6a488035
TO
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>
8f069c03 9 <name>id</name>
491c60cd 10 <title>Open ID identifier</title>
8f069c03
EM
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Unique OpenID ID</comment>
14 <add>2.0</add>
6a488035
TO
15 </field>
16 <primaryKey>
8f069c03
EM
17 <name>id</name>
18 <autoincrement>true</autoincrement>
6a488035
TO
19 </primaryKey>
20 <field>
8f069c03 21 <name>contact_id</name>
491c60cd 22 <title>OpenID Contact</title>
8f069c03
EM
23 <type>int unsigned</type>
24 <comment>FK to Contact ID</comment>
25 <add>2.0</add>
6a488035
TO
26 </field>
27 <foreignKey>
8f069c03
EM
28 <name>contact_id</name>
29 <table>civicrm_contact</table>
30 <key>id</key>
31 <add>2.0</add>
32 <onDelete>CASCADE</onDelete>
6a488035
TO
33 </foreignKey>
34 <field>
8f069c03
EM
35 <name>location_type_id</name>
36 <title>OpenID Location Type</title>
37 <type>int unsigned</type>
5058d73d
PN
38 <pseudoconstant>
39 <table>civicrm_location_type</table>
40 <keyColumn>id</keyColumn>
41 <labelColumn>display_name</labelColumn>
42 </pseudoconstant>
8f069c03
EM
43 <comment>Which Location does this email belong to.</comment>
44 <add>2.0</add>
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>
8f069c03
EM
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>
6a488035
TO
63 </field>
64 <index>
8f069c03
EM
65 <name>UI_openid</name>
66 <fieldName>openid</fieldName>
67 <unique>true</unique>
68 <add>2.0</add>
6a488035
TO
69 </index>
70 <field>
8f069c03 71 <name>allowed_to_login</name>
491c60cd 72 <title>Allowed to login?</title>
8f069c03
EM
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>
6a488035
TO
78 </field>
79 <field>
8f069c03 80 <name>is_primary</name>
b6673dcd 81 <title>Primary ID</title>
8f069c03
EM
82 <type>boolean</type>
83 <default>0</default>
b6673dcd
CW
84 <html>
85 <type>Radio</type>
86 </html>
8f069c03
EM
87 <comment>Is this the primary email for this contact and location.</comment>
88 <add>2.0</add>
6a488035
TO
89 </field>
90</table>