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