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>
46 <uniqueName>grant_application_received_date
</uniqueName>
50 <comment>Date on which grant application was received by donor.
</comment>
53 <type>Select Date
</type>
54 <formatType>activityDate
</formatType>
58 <name>decision_date
</name>
59 <title>Decision date
</title>
60 <uniqueName>grant_decision_date
</uniqueName>
62 <comment>Date on which grant decision was made.
</comment>
66 <type>Select Date
</type>
67 <formatType>activityDate
</formatType>
71 <name>money_transfer_date
</name>
72 <uniqueName>grant_money_transfer_date
</uniqueName>
73 <title>Grant Money transfer date
</title>
75 <comment>Date on which grant money transfer was made.
</comment>
79 <type>Select Date
</type>
80 <formatType>activityDate
</formatType>
84 <name>grant_due_date
</name>
86 <title>Grant Report Due Date
</title>
87 <comment>Date on which grant report is due.
</comment>
91 <type>Select Date
</type>
92 <formatType>activityDate
</formatType>
96 <name>grant_report_received
</name>
97 <title>Grant report received
</title>
99 <comment>Yes/No field stating whether grant report was received by donor.
</comment>
100 <import>true
</import>
103 <type>CheckBox
</type>
107 <name>grant_type_id
</name>
108 <type>int unsigned
</type>
109 <title>Grant Type
</title>
111 <optionGroupName>grant_type
</optionGroupName>
116 <export>true
</export>
117 <required>true
</required>
118 <comment>Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.
</comment>
122 <name>index_grant_type_id
</name>
123 <fieldName>grant_type_id
</fieldName>
127 <name>amount_total
</name>
128 <title>Total Amount
</title>
130 <required>true
</required>
131 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
132 <import>true
</import>
133 <comment>Requested grant amount, in default currency.
</comment>
140 <name>amount_requested
</name>
141 <title>Amount Requested
</title>
143 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
144 <comment>Requested grant amount, in original currency (optional).
</comment>
151 <name>amount_granted
</name>
152 <title>Amount granted
</title>
154 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
155 <import>true
</import>
156 <comment>Granted amount, in default currency.
</comment>
163 <name>currency
</name>
164 <title>Grant Currency
</title>
167 <required>true
</required>
168 <comment>3 character string, value from config setting or input via user.
</comment>
171 <table>civicrm_currency
</table>
172 <keyColumn>name
</keyColumn>
173 <labelColumn>full_name
</labelColumn>
174 <nameColumn>name
</nameColumn>
181 <name>currency
</name>
184 <default>NULL
</default>
185 <comment>3 character string, value from config setting or input via user.
</comment>
190 <name>rationale
</name>
192 <title>Grant Rationale
</title>
193 <comment>Grant rationale.
</comment>
195 <type>TextArea
</type>
199 <import>true
</import>
203 <name>status_id
</name>
204 <type>int unsigned
</type>
205 <title>Grant Status
</title>
206 <uniqueName>grant_status_id
</uniqueName>
207 <required>true
</required>
208 <import>true
</import>
209 <export>false
</export>
210 <comment>Id of Grant status.
</comment>
212 <optionGroupName>grant_status
</optionGroupName>
220 <name>index_status_id
</name>
221 <fieldName>status_id
</fieldName>
225 <name>financial_type_id
</name>
226 <title>Financial Type
</title>
227 <type>int unsigned
</type>
228 <default>NULL
</default>
230 <table>civicrm_financial_type
</table>
231 <keyColumn>id
</keyColumn>
232 <labelColumn>name
</labelColumn>
234 <comment>FK to Financial Type.
</comment>
238 <name>financial_type_id
</name>
239 <table>civicrm_financial_type
</table>
241 <onDelete>SET NULL
</onDelete>