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 <title>Grant Money transfer date
</title>
66 <comment>Date on which grant money transfer was made.
</comment>
70 <type>Select Date
</type>
74 <name>grant_due_date
</name>
76 <title>Grant Due Date
</title>
77 <comment>Date on which grant report is due.
</comment>
80 <type>Select Date
</type>
84 <name>grant_report_received
</name>
85 <title>Grant report received
</title>
87 <comment>Yes/No field stating whether grant report was received by donor.
</comment>
95 <name>grant_type_id
</name>
96 <type>int unsigned
</type>
97 <title>Grant Type
</title>
99 <optionGroupName>grant_type
</optionGroupName>
104 <export>false
</export>
105 <required>true
</required>
106 <comment>Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.
</comment>
110 <name>index_grant_type_id
</name>
111 <fieldName>grant_type_id
</fieldName>
113 <optionGroupName>grant_type
</optionGroupName>
121 <name>amount_total
</name>
122 <title>Total Amount
</title>
124 <required>true
</required>
125 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
126 <import>true
</import>
127 <comment>Requested grant amount, in default currency.
</comment>
134 <name>amount_requested
</name>
135 <title>Amount Requested
</title>
137 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
138 <comment>Requested grant amount, in original currency (optional).
</comment>
145 <name>amount_granted
</name>
146 <title>Amount granted
</title>
148 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
149 <import>true
</import>
150 <comment>Granted amount, in default currency.
</comment>
157 <name>currency
</name>
158 <title>Grant Currency
</title>
161 <required>true
</required>
162 <comment>3 character string, value from config setting or input via user.
</comment>
165 <table>civicrm_currency
</table>
166 <keyColumn>name
</keyColumn>
167 <labelColumn>full_name
</labelColumn>
168 <nameColumn>numeric_code
</nameColumn>
175 <name>currency
</name>
178 <default>NULL
</default>
179 <comment>3 character string, value from config setting or input via user.
</comment>
184 <name>rationale
</name>
186 <title>Grant Rationale
</title>
187 <comment>Grant rationale.
</comment>
189 <type>TextArea
</type>
193 <import>true
</import>
197 <name>status_id
</name>
198 <type>int unsigned
</type>
199 <title>Grant Status
</title>
200 <uniqueName>grant_status_id
</uniqueName>
201 <required>true
</required>
202 <import>true
</import>
203 <export>false
</export>
204 <comment>Id of Grant status.
</comment>
206 <optionGroupName>grant_status
</optionGroupName>
214 <name>index_status_id
</name>
215 <fieldName>status_id
</fieldName>
219 <name>financial_type_id
</name>
220 <title>Financial Type
</title>
221 <type>int unsigned
</type>
222 <default>NULL
</default>
223 <comment>FK to Financial Type.
</comment>
227 <name>financial_type_id
</name>
228 <table>civicrm_financial_type
</table>
230 <onDelete>SET NULL
</onDelete>