Merge pull request #18365 from eileenmcnaughton/member
[civicrm-core.git] / xml / schema / Core / Website.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Core</base>
5 <class>Website</class>
6 <name>civicrm_website</name>
7 <comment>Website information for a specific location.</comment>
8 <add>3.2</add>
449c4e6b 9 <icon>fa-desktop</icon>
6a488035 10 <field>
8f069c03
EM
11 <name>id</name>
12 <type>int unsigned</type>
13 <title>Website ID</title>
14 <required>true</required>
15 <comment>Unique Website ID</comment>
16 <add>3.2</add>
6a488035
TO
17 </field>
18 <primaryKey>
8f069c03
EM
19 <name>id</name>
20 <autoincrement>true</autoincrement>
6a488035
TO
21 </primaryKey>
22 <field>
8f069c03
EM
23 <name>contact_id</name>
24 <title>Contact</title>
25 <type>int unsigned</type>
26 <comment>FK to Contact ID</comment>
27 <add>3.2</add>
6a488035
TO
28 </field>
29 <foreignKey>
8f069c03
EM
30 <name>contact_id</name>
31 <table>civicrm_contact</table>
32 <key>id</key>
33 <add>3.2</add>
34 <onDelete>CASCADE</onDelete>
6a488035
TO
35 </foreignKey>
36 <field>
8f069c03
EM
37 <name>url</name>
38 <title>Website</title>
39 <type>varchar</type>
40 <length>128</length>
41 <html>
42 <type>Text</type>
54f5e87f 43 <size>30</size>
8f069c03
EM
44 </html>
45 <import>true</import>
46 <headerPattern>/Website/i</headerPattern>
47 <dataPattern>/^[A-Za-z][0-9A-Za-z]{20,}$/</dataPattern>
48 <comment>Website</comment>
49 <add>3.2</add>
6a488035
TO
50 </field>
51 <field>
8f069c03
EM
52 <name>website_type_id</name>
53 <title>Website Type</title>
54 <type>int unsigned</type>
55 <comment>Which Website type does this website belong to.</comment>
56 <add>3.2</add>
57 <pseudoconstant>
58 <optionGroupName>website_type</optionGroupName>
59 </pseudoconstant>
60 <html>
61 <type>Select</type>
62 </html>
6a488035
TO
63 </field>
64 <index>
65 <name>UI_website_type_id</name>
3c7d2158 66 <fieldName>website_type_id</fieldName>
6a488035
TO
67 <add>3.2</add>
68 </index>
69</table>