Merge pull request #18396 from swastikpareek/issue-1987-fix-template
[civicrm-core.git] / xml / schema / PCP / PCPBlock.xml
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>
11 <name>id</name>
12 <title>PCP Block ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>PCP block Id</comment>
16 <add>2.2</add>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>entity_table</name>
24 <title>Entity Table</title>
25 <type>varchar</type>
26 <length>64</length>
27 <add>2.2</add>
28 </field>
29 <field>
30 <name>entity_id</name>
31 <title>Entity</title>
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>
36 </field>
37 <dynamicForeignKey>
38 <idColumn>entity_id</idColumn>
39 <typeColumn>entity_table</typeColumn>
40 <add>2.2</add>
41 </dynamicForeignKey>
42 <field>
43 <name>target_entity_type</name>
44 <title>Target Entity</title>
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>
51 </field>
52 <field>
53 <name>target_entity_id</name>
54 <title>Target Entity ID</title>
55 <type>int unsigned</type>
56 <required>true</required>
57 <comment>The entity that this pcp targets</comment>
58 <add>4.1</add>
59 </field>
60 <dynamicForeignKey>
61 <idColumn>target_entity_id</idColumn>
62 <!-- FIXME: typename and not tablename? -->
63 <typeColumn>target_entity_type</typeColumn>
64 <add>4.1</add>
65 </dynamicForeignKey>
66 <field>
67 <name>supporter_profile_id</name>
68 <title>Supporter Profile</title>
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>
73 </field>
74 <foreignKey>
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>
80 </foreignKey>
81 <field>
82 <name>owner_notify_id</name>
83 <title>Owner Notification</title>
84 <type>int unsigned</type>
85 <default>0</default>
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>
95 <field>
96 <name>is_approval_needed</name>
97 <title>Approval Required?</title>
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>
102 </field>
103 <field>
104 <name>is_tellfriend_enabled</name>
105 <title>Tell a Friend Enabled?</title>
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>
110 </field>
111 <field>
112 <name>tellfriend_limit</name>
113 <title>Tell A Friend Limit</title>
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>
118 </field>
119 <field>
120 <name>link_text</name>
121 <title>Link Text</title>
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>
128 </field>
129 <field>
130 <name>is_active</name>
131 <title>Enabled?</title>
132 <type>boolean</type>
133 <comment>Is Personal Campaign Page Block enabled/active?</comment>
134 <default>1</default>
135 <add>2.2</add>
136 </field>
137 <field>
138 <name>notify_email</name>
139 <title>Notification Email</title>
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>
145 </field>
146 </table>