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>
175 <abbrColumn>symbol
</abbrColumn>
182 <name>currency
</name>
185 <default>NULL
</default>
186 <comment>3 character string, value from config setting or input via user.
</comment>
191 <name>rationale
</name>
193 <title>Grant Rationale
</title>
194 <comment>Grant rationale.
</comment>
196 <type>TextArea
</type>
200 <import>true
</import>
204 <name>status_id
</name>
205 <type>int unsigned
</type>
206 <title>Grant Status
</title>
207 <uniqueName>grant_status_id
</uniqueName>
208 <required>true
</required>
209 <import>true
</import>
210 <export>false
</export>
211 <comment>Id of Grant status.
</comment>
213 <optionGroupName>grant_status
</optionGroupName>
221 <name>index_status_id
</name>
222 <fieldName>status_id
</fieldName>
226 <name>financial_type_id
</name>
227 <title>Financial Type
</title>
228 <type>int unsigned
</type>
229 <default>NULL
</default>
231 <table>civicrm_financial_type
</table>
232 <keyColumn>id
</keyColumn>
233 <labelColumn>name
</labelColumn>
235 <comment>FK to Financial Type.
</comment>
239 <name>financial_type_id
</name>
240 <table>civicrm_financial_type
</table>
242 <onDelete>SET NULL
</onDelete>