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