Commit | Line | Data |
---|---|---|
3c7d2158 | 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Contribute</base> | |
5 | <class>ContributionSoft</class> | |
6 | <name>civicrm_contribution_soft</name> | |
7 | <add>2.2</add> | |
6a488035 | 8 | <log>true</log> |
3c7d2158 | 9 | <field> |
8f069c03 EM |
10 | <name>id</name> |
11 | <uniqueName>contribution_soft_id</uniqueName> | |
83396bf9 | 12 | <title>Soft Contribution ID</title> |
8f069c03 EM |
13 | <type>int unsigned</type> |
14 | <required>true</required> | |
15 | <import>true</import> | |
16 | <title>Soft Contribution ID</title> | |
17 | <comment>Soft Contribution ID</comment> | |
18 | <add>2.2</add> | |
3c7d2158 | 19 | </field> |
20 | <primaryKey> | |
8f069c03 EM |
21 | <name>id</name> |
22 | <autoincrement>true</autoincrement> | |
3c7d2158 | 23 | </primaryKey> |
24 | <field> | |
8f069c03 | 25 | <name>contribution_id</name> |
83396bf9 | 26 | <title>Soft Contribution - Contribution</title> |
8f069c03 EM |
27 | <type>int unsigned</type> |
28 | <required>true</required> | |
29 | <comment>FK to contribution table.</comment> | |
30 | <add>2.2</add> | |
3c7d2158 | 31 | </field> |
32 | <foreignKey> | |
8f069c03 EM |
33 | <name>contribution_id</name> |
34 | <table>civicrm_contribution</table> | |
35 | <key>id</key> | |
36 | <add>2.2</add> | |
37 | <onDelete>CASCADE</onDelete> | |
6a488035 | 38 | </foreignKey> |
3c7d2158 | 39 | <field> |
8f069c03 EM |
40 | <name>contact_id</name> |
41 | <uniqueName>contribution_soft_contact_id</uniqueName> | |
42 | <title>Contact ID</title> | |
43 | <type>int unsigned</type> | |
44 | <required>true</required> | |
45 | <import>true</import> | |
46 | <headerPattern>/contact(.?id)?/i</headerPattern> | |
47 | <dataPattern>/^\d+$/</dataPattern> | |
48 | <comment>FK to Contact ID</comment> | |
49 | <add>2.2</add> | |
3c7d2158 | 50 | </field> |
51 | <foreignKey> | |
8f069c03 EM |
52 | <name>contact_id</name> |
53 | <table>civicrm_contact</table> | |
54 | <key>id</key> | |
55 | <add>2.2</add> | |
56 | <onDelete>CASCADE</onDelete> | |
3c7d2158 | 57 | </foreignKey> |
58 | <field> | |
8f069c03 | 59 | <name>amount</name> |
83396bf9 | 60 | <title>Soft Contribution Amount</title> |
8f069c03 EM |
61 | <type>decimal</type> |
62 | <required>true</required> | |
63 | <import>true</import> | |
64 | <headerPattern>/total(.?am(ou)?nt)?/i</headerPattern> | |
65 | <dataPattern>/^\d+(\.\d{2})?$/</dataPattern> | |
66 | <comment>Amount of this soft contribution.</comment> | |
67 | <add>2.2</add> | |
6a488035 TO |
68 | </field> |
69 | <field> | |
8f069c03 EM |
70 | <name>currency</name> |
71 | <type>varchar</type> | |
83396bf9 | 72 | <title>Soft Contribution Currency</title> |
8f069c03 EM |
73 | <length>3</length> |
74 | <default>NULL</default> | |
75 | <comment>3 character string, value from config setting or input via user.</comment> | |
76 | <add>3.2</add> | |
77 | <pseudoconstant> | |
78 | <table>civicrm_currency</table> | |
79 | <keyColumn>name</keyColumn> | |
80 | <labelColumn>full_name</labelColumn> | |
c3de5c5a | 81 | <nameColumn>name</nameColumn> |
a8fdb24e | 82 | <abbrColumn>symbol</abbrColumn> |
8f069c03 EM |
83 | </pseudoconstant> |
84 | <html> | |
85 | <type>Select</type> | |
86 | </html> | |
6a488035 | 87 | </field> |
3c7d2158 | 88 | <field> |
8f069c03 EM |
89 | <name>pcp_id</name> |
90 | <type>int unsigned</type> | |
83396bf9 | 91 | <title>Soft Contribution PCP</title> |
8f069c03 EM |
92 | <default>NULL</default> |
93 | <comment>FK to civicrm_pcp.id</comment> | |
94 | <add>2.2</add> | |
3c151c70 | 95 | <pseudoconstant> |
96 | <table>civicrm_pcp</table> | |
97 | <keyColumn>id</keyColumn> | |
98 | <labelColumn>title</labelColumn> | |
99 | </pseudoconstant> | |
3c7d2158 | 100 | </field> |
6a488035 | 101 | <foreignKey> |
8f069c03 EM |
102 | <name>pcp_id</name> |
103 | <table>civicrm_pcp</table> | |
104 | <key>id</key> | |
105 | <add>3.1</add> | |
106 | <onDelete>SET NULL</onDelete> | |
6a488035 TO |
107 | </foreignKey> |
108 | <index> | |
8f069c03 EM |
109 | <name>index_id</name> |
110 | <fieldName>pcp_id</fieldName> | |
111 | <add>2.2</add> | |
112 | </index> | |
113 | <field> | |
114 | <name>pcp_display_in_roll</name> | |
115 | <type>boolean</type> | |
83396bf9 | 116 | <title>Soft Contribution Display on PCP</title> |
8f069c03 EM |
117 | <default>0</default> |
118 | <add>2.2</add> | |
3c7d2158 | 119 | </field> |
6a488035 | 120 | <field> |
8f069c03 EM |
121 | <name>pcp_roll_nickname</name> |
122 | <type>varchar</type> | |
83396bf9 | 123 | <title>Soft Contribution PCP Nickname</title> |
8f069c03 EM |
124 | <length>255</length> |
125 | <default>NULL</default> | |
126 | <add>2.2</add> | |
6a488035 TO |
127 | </field> |
128 | <field> | |
8f069c03 EM |
129 | <name>pcp_personal_note</name> |
130 | <type>varchar</type> | |
83396bf9 | 131 | <title>Soft Contribution PCP Note</title> |
8f069c03 | 132 | <length>255</length> |
bddddc63 | 133 | <html> |
134 | <type>TextArea</type> | |
135 | </html> | |
8f069c03 EM |
136 | <default>NULL</default> |
137 | <add>2.2</add> | |
6a488035 | 138 | </field> |
51fa20cb | 139 | <field> |
8f069c03 EM |
140 | <name>soft_credit_type_id</name> |
141 | <type>int unsigned</type> | |
142 | <default>NULL</default> | |
143 | <title>Soft Credit Type</title> | |
144 | <pseudoconstant> | |
145 | <optionGroupName>soft_credit_type</optionGroupName> | |
146 | </pseudoconstant> | |
147 | <comment>Soft Credit Type ID.Implicit FK to civicrm_option_value where option_group = soft_credit_type.</comment> | |
148 | <add>2.2</add> | |
51fa20cb | 149 | </field> |
6a488035 | 150 | </table> |