Merge pull request #18237 from mattwire/mailingsearchcolumns
[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>
3c7d2158 94 <field>
e244747c 95 <name>page_id</name>
f3ea5182 96 <title>Contribution Page</title>
e244747c
EM
97 <type>int unsigned</type>
98 <required>true</required>
99 <comment>The Contribution or Event Page which triggered this pcp</comment>
100 <add>4.1</add>
101 </field>
102 <field>
103 <name>page_type</name>
104 <title>PCP Page Type</title>
105 <comment>The type of PCP this is: contribute or event</comment>
106 <type>varchar</type>
107 <length>64</length>
108 <default>'contribute'</default>
109 <html>
110 <type>Select</type>
111 </html>
112 <add>2.2</add>
113 </field>
114 <field>
115 <name>pcp_block_id</name>
f3ea5182 116 <title>PCP Block</title>
e244747c
EM
117 <comment>The pcp block that this pcp page was created from</comment>
118 <type>int unsigned</type>
119 <required>true</required>
120 <add>4.1</add>
121 </field>
122 <field>
123 <name>is_thermometer</name>
f3ea5182 124 <title>Use Thermometer?</title>
e244747c
EM
125 <type>int unsigned</type>
126 <default>0</default>
127 <html>
128 <type>CheckBox</type>
129 </html>
130 <add>2.2</add>
131 </field>
132 <field>
133 <name>is_honor_roll</name>
f3ea5182 134 <title>Show Honor Roll?</title>
e244747c
EM
135 <type>int unsigned</type>
136 <default>0</default>
137 <add>2.2</add>
138 <html>
139 <type>CheckBox</type>
140 </html>
141 </field>
142 <field>
143 <name>goal_amount</name>
f3ea5182 144 <title>Goal Amount</title>
e244747c
EM
145 <type>decimal</type>
146 <comment>Goal amount of this Personal Campaign Page.</comment>
147 <add>2.2</add>
148 <html>
149 <type>Text</type>
150 </html>
151 </field>
152 <field>
153 <name>currency</name>
f3ea5182 154 <title>Currency</title>
e244747c
EM
155 <type>varchar</type>
156 <length>3</length>
157 <default>NULL</default>
158 <comment>3 character string, value from config setting or input via user.</comment>
159 <add>3.2</add>
160 <pseudoconstant>
161 <table>civicrm_currency</table>
162 <keyColumn>name</keyColumn>
163 <labelColumn>full_name</labelColumn>
c3de5c5a 164 <nameColumn>name</nameColumn>
a8fdb24e 165 <abbrColumn>symbol</abbrColumn>
e244747c
EM
166 </pseudoconstant>
167 <html>
168 <type>Select</type>
169 </html>
170 </field>
e244747c
EM
171 <field>
172 <name>is_active</name>
f3ea5182 173 <title>Enabled?</title>
e244747c
EM
174 <type>boolean</type>
175 <comment>Is Personal Campaign Page enabled/active?</comment>
176 <default>0</default>
177 <add>2.2</add>
178 <html>
179 <type>CheckBox</type>
180 </html>
6a488035 181 </field>
12f92dbd
N
182 <field>
183 <name>is_notify</name>
f3ea5182 184 <title>Notify Owner?</title>
12f92dbd
N
185 <type>boolean</type>
186 <comment>Notify owner via email when someone donates to page?</comment>
187 <default>0</default>
188 <add>4.6</add>
189 <html>
190 <type>CheckBox</type>
191 </html>
192 </field>
6a488035 193</table>