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>
34 <name>contact_id
</name>
35 <table>civicrm_contact
</table>
38 <onDelete>CASCADE
</onDelete>
41 <name>application_received_date
</name>
42 <title>Application received date
</title>
45 <comment>Date on which grant application was received by donor.
</comment>
49 <name>decision_date
</name>
50 <title>Decision date
</title>
52 <comment>Date on which grant decision was made.
</comment>
57 <name>money_transfer_date
</name>
58 <title>Grant Money transfer date
</title>
60 <comment>Date on which grant money transfer was made.
</comment>
65 <name>grant_due_date
</name>
67 <title>Grant Due Date
</title>
68 <comment>Date on which grant report is due.
</comment>
72 <name>grant_report_received
</name>
73 <title>Grant report received
</title>
75 <comment>Yes/No field stating whether grant report was received by donor.
</comment>
80 <name>grant_type_id
</name>
81 <type>int unsigned
</type>
82 <title>Grant Type Id
</title>
84 <name>grantType
</name>
85 <optionGroupName>grant_type
</optionGroupName>
87 <export>false
</export>
88 <required>true
</required>
89 <comment>Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.
</comment>
93 <name>index_grant_type_id
</name>
94 <fieldName>grant_type_id
</fieldName>
98 <name>amount_total
</name>
99 <title>Total Amount
</title>
101 <required>true
</required>
102 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
103 <import>true
</import>
104 <comment>Requested grant amount, in default currency.
</comment>
108 <name>amount_requested
</name>
109 <title>Amount Requested
</title>
111 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
112 <comment>Requested grant amount, in original currency (optional).
</comment>
116 <name>amount_granted
</name>
117 <title>Amount granted
</title>
119 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
120 <import>true
</import>
121 <comment>Granted amount, in default currency.
</comment>
125 <name>currency
</name>
128 <required>true
</required>
129 <comment>3 character string, value from config setting or input via user.
</comment>
133 <name>currency
</name>
136 <default>NULL
</default>
137 <comment>3 character string, value from config setting or input via user.
</comment>
142 <name>rationale
</name>
144 <title>Grant Rationale
</title>
145 <comment>Grant rationale.
</comment>
146 <htmlType>textarea
</htmlType>
149 <import>true
</import>
153 <name>status_id
</name>
154 <type>int unsigned
</type>
155 <title>Grant Status Id
</title>
156 <uniqueName>grant_status_id
</uniqueName>
157 <required>true
</required>
158 <import>true
</import>
159 <export>false
</export>
160 <comment>Id of Grant status.
</comment>
164 <name>index_status_id
</name>
165 <fieldName>status_id
</fieldName>
169 <name>financial_type_id
</name>
170 <title>Financial Type
</title>
171 <type>int unsigned
</type>
172 <default>NULL
</default>
173 <comment>FK to Financial Type.
</comment>
177 <name>financial_type_id
</name>
178 <table>civicrm_financial_type
</table>
180 <onDelete>SET NULL
</onDelete>