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