Merge pull request #19568 from totten/5.35-rand37
[civicrm-core.git] / xml / schema / PCP / PCPBlock.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/PCP</base>
5 <class>PCPBlock</class>
6 <name>civicrm_pcp_block</name>
7 <comment>A Personal Campaign Page Block stores admin configurable status options and rules</comment>
8 <add>2.2</add>
9 <log>true</log>
d31fb4e3 10 <component>CiviContribute</component>
6a488035 11 <field>
e244747c 12 <name>id</name>
f3ea5182 13 <title>PCP Block ID</title>
e244747c
EM
14 <type>int unsigned</type>
15 <required>true</required>
047c5009 16 <comment>PCP block ID</comment>
e244747c 17 <add>2.2</add>
0481e12c
A
18 <html>
19 <type>Number</type>
20 </html>
6a488035
TO
21 </field>
22 <primaryKey>
e244747c
EM
23 <name>id</name>
24 <autoincrement>true</autoincrement>
6a488035
TO
25 </primaryKey>
26 <field>
e244747c 27 <name>entity_table</name>
f3ea5182 28 <title>Entity Table</title>
e244747c
EM
29 <type>varchar</type>
30 <length>64</length>
31 <add>2.2</add>
6a488035
TO
32 </field>
33 <field>
e244747c 34 <name>entity_id</name>
f3ea5182 35 <title>Entity</title>
e244747c
EM
36 <type>int unsigned</type>
37 <required>true</required>
38 <comment>FK to civicrm_contribution_page.id OR civicrm_event.id</comment>
39 <add>2.2</add>
6a488035 40 </field>
71e5aa5c 41 <dynamicForeignKey>
e244747c
EM
42 <idColumn>entity_id</idColumn>
43 <typeColumn>entity_table</typeColumn>
44 <add>2.2</add>
71e5aa5c 45 </dynamicForeignKey>
6a488035 46 <field>
e244747c 47 <name>target_entity_type</name>
f3ea5182 48 <title>Target Entity</title>
e244747c
EM
49 <type>varchar</type>
50 <length>255</length>
51 <required>true</required>
52 <default>'contribute'</default>
53 <comment>The type of entity that this pcp targets</comment>
54 <add>4.1</add>
6a488035
TO
55 </field>
56 <field>
e244747c 57 <name>target_entity_id</name>
f3ea5182 58 <title>Target Entity ID</title>
e244747c
EM
59 <type>int unsigned</type>
60 <required>true</required>
61 <comment>The entity that this pcp targets</comment>
62 <add>4.1</add>
6a488035 63 </field>
71e5aa5c 64 <dynamicForeignKey>
e244747c
EM
65 <idColumn>target_entity_id</idColumn>
66 <!-- FIXME: typename and not tablename? -->
67 <typeColumn>target_entity_type</typeColumn>
68 <add>4.1</add>
71e5aa5c 69 </dynamicForeignKey>
3c7d2158 70 <field>
e244747c 71 <name>supporter_profile_id</name>
57e94608 72 <title>Supporter Profile ID</title>
e244747c
EM
73 <type>int unsigned</type>
74 <comment>FK to civicrm_uf_group.id. Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?</comment>
75 <default>NULL</default>
57e94608
A
76 <html>
77 <label>Supporter Profile</label>
78 </html>
e244747c 79 <add>2.2</add>
6a488035 80 </field>
3c7d2158 81 <foreignKey>
e244747c
EM
82 <name>supporter_profile_id</name>
83 <table>civicrm_uf_group</table>
84 <key>id</key>
85 <add>3.1</add>
86 <onDelete>SET NULL</onDelete>
6a488035 87 </foreignKey>
12f92dbd
N
88 <field>
89 <name>owner_notify_id</name>
90 <title>Owner Notification</title>
91 <type>int unsigned</type>
8bbae400 92 <default>0</default>
12f92dbd
N
93 <comment>FK to civicrm_option_group with name = PCP owner notifications</comment>
94 <add>4.6</add>
95 <pseudoconstant>
96 <optionGroupName>pcp_owner_notify</optionGroupName>
97 </pseudoconstant>
98 <html>
99 <type>Radio</type>
100 </html>
101 </field>
3c7d2158 102 <field>
e244747c 103 <name>is_approval_needed</name>
f3ea5182 104 <title>Approval Required?</title>
e244747c
EM
105 <type>boolean</type>
106 <comment>Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?</comment>
107 <default>NULL</default>
108 <add>2.2</add>
6a488035 109 </field>
3c7d2158 110 <field>
e244747c 111 <name>is_tellfriend_enabled</name>
f3ea5182 112 <title>Tell a Friend Enabled?</title>
e244747c
EM
113 <type>boolean</type>
114 <comment>Does Personal Campaign Page allow using tell a friend?</comment>
115 <default>NULL</default>
116 <add>2.2</add>
6a488035 117 </field>
3c7d2158 118 <field>
e244747c 119 <name>tellfriend_limit</name>
f3ea5182 120 <title>Tell A Friend Limit</title>
e244747c
EM
121 <type>int unsigned</type>
122 <default>NULL</default>
123 <comment>Maximum recipient fields allowed in tell a friend</comment>
124 <add>2.2</add>
6a488035
TO
125 </field>
126 <field>
e244747c 127 <name>link_text</name>
f3ea5182 128 <title>Link Text</title>
e244747c
EM
129 <type>varchar</type>
130 <length>255</length>
131 <default>NULL</default>
132 <localizable>true</localizable>
133 <comment>Link text for PCP.</comment>
134 <add>2.2</add>
3c7d2158 135 </field>
136 <field>
e244747c 137 <name>is_active</name>
f3ea5182 138 <title>Enabled?</title>
e244747c
EM
139 <type>boolean</type>
140 <comment>Is Personal Campaign Page Block enabled/active?</comment>
141 <default>1</default>
142 <add>2.2</add>
6a488035 143 </field>
3c7d2158 144 <field>
e244747c 145 <name>notify_email</name>
f3ea5182 146 <title>Notification Email</title>
e244747c
EM
147 <type>varchar</type>
148 <length>255</length>
149 <comment>If set, notification is automatically emailed to this email-address on create/update Personal Campaign Page</comment>
150 <default>NULL</default>
151 <add>2.2</add>
6a488035
TO
152 </field>
153</table>