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 <optionGroupName>grant_type
</optionGroupName>
86 <export>false
</export>
87 <required>true
</required>
88 <comment>Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.
</comment>
92 <name>index_grant_type_id
</name>
93 <fieldName>grant_type_id
</fieldName>
95 <optionGroupName>grant_type
</optionGroupName>
100 <name>amount_total
</name>
101 <title>Total Amount
</title>
103 <required>true
</required>
104 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
105 <import>true
</import>
106 <comment>Requested grant amount, in default currency.
</comment>
110 <name>amount_requested
</name>
111 <title>Amount Requested
</title>
113 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
114 <comment>Requested grant amount, in original currency (optional).
</comment>
118 <name>amount_granted
</name>
119 <title>Amount granted
</title>
121 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
122 <import>true
</import>
123 <comment>Granted amount, in default currency.
</comment>
127 <name>currency
</name>
130 <required>true
</required>
131 <comment>3 character string, value from config setting or input via user.
</comment>
134 <table>civicrm_currency
</table>
135 <keyColumn>name
</keyColumn>
136 <labelColumn>full_name
</labelColumn>
137 <nameColumn>numeric_code
</nameColumn>
141 <name>currency
</name>
144 <default>NULL
</default>
145 <comment>3 character string, value from config setting or input via user.
</comment>
150 <name>rationale
</name>
152 <title>Grant Rationale
</title>
153 <comment>Grant rationale.
</comment>
154 <htmlType>textarea
</htmlType>
157 <import>true
</import>
161 <name>status_id
</name>
162 <type>int unsigned
</type>
163 <title>Grant Status Id
</title>
164 <uniqueName>grant_status_id
</uniqueName>
165 <required>true
</required>
166 <import>true
</import>
167 <export>false
</export>
168 <comment>Id of Grant status.
</comment>
170 <optionGroupName>grant_status
</optionGroupName>
175 <name>index_status_id
</name>
176 <fieldName>status_id
</fieldName>
180 <name>financial_type_id
</name>
181 <title>Financial Type
</title>
182 <type>int unsigned
</type>
183 <default>NULL
</default>
184 <comment>FK to Financial Type.
</comment>
188 <name>financial_type_id
</name>
189 <table>civicrm_financial_type
</table>
191 <onDelete>SET NULL
</onDelete>