Merge pull request #16514 from mattwire/phpnotice_ccparams
[civicrm-core.git] / xml / schema / Core / Website.xml
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>
9 <icon>fa-desktop</icon>
10 <field>
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>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
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>
28 </field>
29 <foreignKey>
30 <name>contact_id</name>
31 <table>civicrm_contact</table>
32 <key>id</key>
33 <add>3.2</add>
34 <onDelete>CASCADE</onDelete>
35 </foreignKey>
36 <field>
37 <name>url</name>
38 <title>Website</title>
39 <type>varchar</type>
40 <length>128</length>
41 <html>
42 <type>Text</type>
43 <size>30</size>
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>
50 </field>
51 <field>
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>
63 </field>
64 <index>
65 <name>UI_website_type_id</name>
66 <fieldName>website_type_id</fieldName>
67 <add>3.2</add>
68 </index>
69 </table>