Import from SVN (r45945, r596)
[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>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Unique Website ID</comment>
14 <add>3.2</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>contact_id</name>
22 <type>int unsigned</type>
23 <comment>FK to Contact ID</comment>
24 <add>3.2</add>
25 </field>
26 <foreignKey>
27 <name>contact_id</name>
28 <table>civicrm_contact</table>
29 <key>id</key>
30 <add>3.2</add>
31 <onDelete>CASCADE</onDelete>
32 </foreignKey>
33 <field>
34 <name>url</name>
35 <title>Website</title>
36 <type>varchar</type>
37 <length>128</length>
38 <size>BIG</size>
39 <import>true</import>
40 <headerPattern>/Website/i</headerPattern>
41 <dataPattern>/^[A-Za-z][0-9A-Za-z]{20,}$/</dataPattern>
42 <comment>Website</comment>
43 <add>3.2</add>
44 </field>
45 <field>
46 <name>website_type_id</name>
47 <title>Website Type</title>
48 <type>int unsigned</type>
49 <comment>Which Website type does this website belong to.</comment>
50 <add>3.2</add>
51 <pseudoconstant>
52 <name>websiteType</name>
53 <optionGroupName>website_type</optionGroupName>
54 </pseudoconstant>
55 </field>
56 <index>
57 <name>UI_website_type_id</name>
58 <fieldName>website_type_id</fieldName>
59 <add>3.2</add>
60 </index>
61</table>