Merge pull request #19509 from jmcclelland/correctSmsNumbers
[civicrm-core.git] / xml / schema / PCP / PCP.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/PCP</base>
5 <class>PCP</class>
6 <name>civicrm_pcp</name>
7 <add>2.2</add>
8 <log>true</log>
9 <component>CiviContribute</component>
10 <field>
11 <name>id</name>
12 <uniqueName>pcp_id</uniqueName>
13 <type>int unsigned</type>
14 <required>true</required>
15 <title>Personal Campaign Page ID</title>
16 <comment>Personal Campaign Page ID</comment>
17 <add>2.2</add>
18 <html>
19 <type>Number</type>
20 </html>
21 </field>
22 <primaryKey>
23 <name>id</name>
24 <autoincrement>true</autoincrement>
25 </primaryKey>
26 <field>
27 <name>contact_id</name>
28 <uniqueName>pcp_contact_id</uniqueName>
29 <title>Contact ID</title>
30 <type>int unsigned</type>
31 <required>true</required>
32 <comment>FK to Contact ID</comment>
33 <add>2.2</add>
34 <html>
35 <type>EntityRef</type>
36 <label>Contact</label>
37 </html>
38 </field>
39 <foreignKey>
40 <name>contact_id</name>
41 <table>civicrm_contact</table>
42 <key>id</key>
43 <add>2.2</add>
44 <onDelete>CASCADE</onDelete>
45 </foreignKey>
46 <field>
47 <name>status_id</name>
48 <title>Personal Campaign Page Status</title>
49 <required>true</required>
50 <type>int unsigned</type>
51 <add>2.2</add>
52 <pseudoconstant>
53 <optionGroupName>pcp_status</optionGroupName>
54 </pseudoconstant>
55 <html>
56 <type>Select</type>
57 </html>
58 </field>
59 <field>
60 <name>title</name>
61 <title>Personal Campaign Page Title</title>
62 <type>varchar</type>
63 <length>255</length>
64 <default>NULL</default>
65 <add>2.2</add>
66 <html>
67 <type>Text</type>
68 </html>
69 </field>
70 <field>
71 <name>intro_text</name>
72 <type>text</type>
73 <default>NULL</default>
74 <add>2.2</add>
75 <html>
76 <type>TextArea</type>
77 </html>
78 </field>
79 <field>
80 <name>page_text</name>
81 <type>text</type>
82 <default>NULL</default>
83 <add>2.2</add>
84 <html>
85 <type>TextArea</type>
86 </html>
87 </field>
88 <field>
89 <name>donate_link_text</name>
90 <title>Donate Link Text</title>
91 <type>varchar</type>
92 <length>255</length>
93 <default>NULL</default>
94 <add>2.2</add>
95 <html>
96 <type>Text</type>
97 </html>
98 </field>
99 <field>
100 <name>page_id</name>
101 <title>Contribution Page</title>
102 <type>int unsigned</type>
103 <required>true</required>
104 <comment>The Contribution or Event Page which triggered this pcp</comment>
105 <add>4.1</add>
106 </field>
107 <field>
108 <name>page_type</name>
109 <title>PCP Page Type</title>
110 <comment>The type of PCP this is: contribute or event</comment>
111 <type>varchar</type>
112 <length>64</length>
113 <default>'contribute'</default>
114 <html>
115 <type>Select</type>
116 </html>
117 <add>2.2</add>
118 </field>
119 <field>
120 <name>pcp_block_id</name>
121 <title>PCP Block</title>
122 <comment>The pcp block that this pcp page was created from</comment>
123 <type>int unsigned</type>
124 <required>true</required>
125 <add>4.1</add>
126 </field>
127 <field>
128 <name>is_thermometer</name>
129 <title>Use Thermometer?</title>
130 <type>int unsigned</type>
131 <default>0</default>
132 <html>
133 <type>CheckBox</type>
134 </html>
135 <add>2.2</add>
136 </field>
137 <field>
138 <name>is_honor_roll</name>
139 <title>Show Honor Roll?</title>
140 <type>int unsigned</type>
141 <default>0</default>
142 <add>2.2</add>
143 <html>
144 <type>CheckBox</type>
145 </html>
146 </field>
147 <field>
148 <name>goal_amount</name>
149 <title>Goal Amount</title>
150 <type>decimal</type>
151 <comment>Goal amount of this Personal Campaign Page.</comment>
152 <add>2.2</add>
153 <html>
154 <type>Text</type>
155 </html>
156 </field>
157 <field>
158 <name>currency</name>
159 <title>Currency</title>
160 <type>varchar</type>
161 <length>3</length>
162 <default>NULL</default>
163 <comment>3 character string, value from config setting or input via user.</comment>
164 <add>3.2</add>
165 <pseudoconstant>
166 <table>civicrm_currency</table>
167 <keyColumn>name</keyColumn>
168 <labelColumn>full_name</labelColumn>
169 <nameColumn>name</nameColumn>
170 <abbrColumn>symbol</abbrColumn>
171 </pseudoconstant>
172 <html>
173 <type>Select</type>
174 </html>
175 </field>
176 <field>
177 <name>is_active</name>
178 <title>Enabled?</title>
179 <type>boolean</type>
180 <comment>Is Personal Campaign Page enabled/active?</comment>
181 <default>0</default>
182 <add>2.2</add>
183 <html>
184 <type>CheckBox</type>
185 </html>
186 </field>
187 <field>
188 <name>is_notify</name>
189 <title>Notify Owner?</title>
190 <type>boolean</type>
191 <comment>Notify owner via email when someone donates to page?</comment>
192 <default>0</default>
193 <add>4.6</add>
194 <html>
195 <type>CheckBox</type>
196 </html>
197 </field>
198 </table>