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