Merge pull request #20251 from larssandergreen/change-registration-button-text
[civicrm-core.git] / xml / schema / Core / County.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>County</class>
6 <name>civicrm_county</name>
7 <add>1.1</add>
8 <labelField>name</labelField>
9 <field>
10 <name>id</name>
11 <title>County ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>County ID</comment>
15 <html>
16 <type>Number</type>
17 </html>
18 <add>1.1</add>
19 </field>
20 <primaryKey>
21 <name>id</name>
22 <autoincrement>false</autoincrement>
23 </primaryKey>
24 <field>
25 <name>name</name>
26 <title>County</title>
27 <type>varchar</type>
28 <length>64</length>
29 <import>true</import>
30 <headerPattern>/county/i</headerPattern>
31 <dataPattern>/[A-Z]{2}/</dataPattern>
32 <comment>Name of County</comment>
33 <add>1.1</add>
34 </field>
35 <field>
36 <name>abbreviation</name>
37 <title>County Abbreviation</title>
38 <type>varchar</type>
39 <length>4</length>
40 <comment>2-4 Character Abbreviation of County</comment>
41 <add>1.1</add>
42 </field>
43 <field>
44 <name>state_province_id</name>
45 <title>State ID</title>
46 <type>int unsigned</type>
47 <required>true</required>
48 <comment>ID of State/Province that County belongs</comment>
49 <html>
50 <label>State</label>
51 </html>
52 <add>1.1</add>
53 <pseudoconstant>
54 <table>civicrm_state_province</table>
55 <keyColumn>id</keyColumn>
56 <labelColumn>name</labelColumn>
57 <abbrColumn>abbreviation</abbrColumn>
58 </pseudoconstant>
59 </field>
60 <foreignKey>
61 <name>state_province_id</name>
62 <table>civicrm_state_province</table>
63 <key>id</key>
64 <add>1.1</add>
65 </foreignKey>
66 <field>
67 <name>is_active</name>
68 <title>County Is Active</title>
69 <type>boolean</type>
70 <default>1</default>
71 <comment>Is this County active?</comment>
72 <add>5.35</add>
73 </field>
74 <index>
75 <name>UI_name_state_id</name>
76 <fieldName>name</fieldName>
77 <fieldName>state_province_id</fieldName>
78 <unique>true</unique>
79 <add>1.1</add>
80 </index>
81 </table>