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