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>Autocomplete-Select
</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>
114 <optionGroupName>grant_type
</optionGroupName>
122 <name>amount_total
</name>
123 <title>Total Amount
</title>
125 <required>true
</required>
126 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
127 <import>true
</import>
128 <comment>Requested grant amount, in default currency.
</comment>
135 <name>amount_requested
</name>
136 <title>Amount Requested
</title>
138 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
139 <comment>Requested grant amount, in original currency (optional).
</comment>
146 <name>amount_granted
</name>
147 <title>Amount granted
</title>
149 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
150 <import>true
</import>
151 <comment>Granted amount, in default currency.
</comment>
158 <name>currency
</name>
159 <title>Grant Currency
</title>
162 <required>true
</required>
163 <comment>3 character string, value from config setting or input via user.
</comment>
166 <table>civicrm_currency
</table>
167 <keyColumn>name
</keyColumn>
168 <labelColumn>full_name
</labelColumn>
169 <nameColumn>numeric_code
</nameColumn>
176 <name>currency
</name>
179 <default>NULL
</default>
180 <comment>3 character string, value from config setting or input via user.
</comment>
185 <name>rationale
</name>
187 <title>Grant Rationale
</title>
188 <comment>Grant rationale.
</comment>
190 <type>TextArea
</type>
194 <import>true
</import>
198 <name>status_id
</name>
199 <type>int unsigned
</type>
200 <title>Grant Status
</title>
201 <uniqueName>grant_status_id
</uniqueName>
202 <required>true
</required>
203 <import>true
</import>
204 <export>false
</export>
205 <comment>Id of Grant status.
</comment>
207 <optionGroupName>grant_status
</optionGroupName>
215 <name>index_status_id
</name>
216 <fieldName>status_id
</fieldName>
220 <name>financial_type_id
</name>
221 <title>Financial Type
</title>
222 <type>int unsigned
</type>
223 <default>NULL
</default>
225 <table>civicrm_financial_type
</table>
226 <keyColumn>id
</keyColumn>
227 <labelColumn>name
</labelColumn>
229 <comment>FK to Financial Type.
</comment>
233 <name>financial_type_id
</name>
234 <table>civicrm_financial_type
</table>
236 <onDelete>SET NULL
</onDelete>