1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
5 <name>civicrm_grant
</name>
6 <comment>This table stores information about grants given to a contact.
</comment>
11 <type>int unsigned
</type>
12 <uniqueName>grant_id
</uniqueName>
13 <title>Grant ID
</title>
14 <required>true
</required>
15 <comment>Unique Grant id
</comment>
21 <autoincrement>true
</autoincrement>
24 <name>contact_id
</name>
25 <type>int unsigned
</type>
26 <uniqueName>grant_contact_id
</uniqueName>
27 <title>Contact ID
</title>
29 <required>true
</required>
30 <comment>Contact ID of contact record given grant belongs to.
</comment>
33 <type>EntityRef
</type>
37 <name>contact_id
</name>
38 <table>civicrm_contact
</table>
41 <onDelete>CASCADE
</onDelete>
44 <name>application_received_date
</name>
45 <title>Application received date
</title>
48 <comment>Date on which grant application was received by donor.
</comment>
52 <name>decision_date
</name>
53 <title>Decision date
</title>
55 <comment>Date on which grant decision was made.
</comment>
59 <type>Select Date
</type>
63 <name>money_transfer_date
</name>
64 <uniqueName>grant_money_transfer_date
</uniqueName>
65 <title>Grant Money transfer date
</title>
67 <comment>Date on which grant money transfer was made.
</comment>
71 <type>Select Date
</type>
75 <name>grant_due_date
</name>
77 <title>Grant Due Date
</title>
78 <comment>Date on which grant report is due.
</comment>
81 <type>Select Date
</type>
85 <name>grant_report_received
</name>
86 <title>Grant report received
</title>
88 <comment>Yes/No field stating whether grant report was received by donor.
</comment>
96 <name>grant_type_id
</name>
97 <type>int unsigned
</type>
98 <title>Grant Type
</title>
100 <optionGroupName>grant_type
</optionGroupName>
105 <export>true
</export>
106 <required>true
</required>
107 <comment>Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.
</comment>
111 <name>index_grant_type_id
</name>
112 <fieldName>grant_type_id
</fieldName>
116 <name>amount_total
</name>
117 <title>Total Amount
</title>
119 <required>true
</required>
120 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
121 <import>true
</import>
122 <comment>Requested grant amount, in default currency.
</comment>
129 <name>amount_requested
</name>
130 <title>Amount Requested
</title>
132 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
133 <comment>Requested grant amount, in original currency (optional).
</comment>
140 <name>amount_granted
</name>
141 <title>Amount granted
</title>
143 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
144 <import>true
</import>
145 <comment>Granted amount, in default currency.
</comment>
152 <name>currency
</name>
153 <title>Grant Currency
</title>
156 <required>true
</required>
157 <comment>3 character string, value from config setting or input via user.
</comment>
160 <table>civicrm_currency
</table>
161 <keyColumn>name
</keyColumn>
162 <labelColumn>full_name
</labelColumn>
163 <nameColumn>name
</nameColumn>
170 <name>currency
</name>
173 <default>NULL
</default>
174 <comment>3 character string, value from config setting or input via user.
</comment>
179 <name>rationale
</name>
181 <title>Grant Rationale
</title>
182 <comment>Grant rationale.
</comment>
184 <type>TextArea
</type>
188 <import>true
</import>
192 <name>status_id
</name>
193 <type>int unsigned
</type>
194 <title>Grant Status
</title>
195 <uniqueName>grant_status_id
</uniqueName>
196 <required>true
</required>
197 <import>true
</import>
198 <export>false
</export>
199 <comment>Id of Grant status.
</comment>
201 <optionGroupName>grant_status
</optionGroupName>
209 <name>index_status_id
</name>
210 <fieldName>status_id
</fieldName>
214 <name>financial_type_id
</name>
215 <title>Financial Type
</title>
216 <type>int unsigned
</type>
217 <default>NULL
</default>
219 <table>civicrm_financial_type
</table>
220 <keyColumn>id
</keyColumn>
221 <labelColumn>name
</labelColumn>
223 <comment>FK to Financial Type.
</comment>
227 <name>financial_type_id
</name>
228 <table>civicrm_financial_type
</table>
230 <onDelete>SET NULL
</onDelete>