Commit | Line | Data |
---|---|---|
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> | |
6a488035 TO |
52 | <optionGroupName>website_type</optionGroupName> |
53 | </pseudoconstant> | |
54 | </field> | |
55 | <index> | |
56 | <name>UI_website_type_id</name> | |
3c7d2158 | 57 | <fieldName>website_type_id</fieldName> |
6a488035 TO |
58 | <add>3.2</add> |
59 | </index> | |
60 | </table> |