Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Batch</base> | |
5 | <class>Batch</class> | |
6 | <name>civicrm_batch</name> | |
7 | <comment>Stores the details of a batch operation Used primarily when doing batch operations with an external system.</comment> | |
8 | <add>3.3</add> | |
9 | <field> | |
10 | <name>id</name> | |
61ce9b45 | 11 | <title>Batch ID</title> |
6a488035 TO |
12 | <type>int unsigned</type> |
13 | <required>true</required> | |
14 | <comment>Unique Address ID</comment> | |
15 | <add>3.3</add> | |
16 | </field> | |
17 | <primaryKey> | |
18 | <name>id</name> | |
19 | <autoincrement>true</autoincrement> | |
20 | </primaryKey> | |
21 | <field> | |
22 | <name>name</name> | |
61ce9b45 | 23 | <title>Batch Name</title> |
6a488035 TO |
24 | <type>varchar</type> |
25 | <length>64</length> | |
26 | <comment>Variable name/programmatic handle for this batch.</comment> | |
27 | <add>3.3</add> | |
614d72ec | 28 | <html> |
29 | <type>Text</type> | |
30 | </html> | |
6a488035 TO |
31 | </field> |
32 | <index> | |
33 | <name>UI_name</name> | |
34 | <fieldName>name</fieldName> | |
35 | <unique>true</unique> | |
36 | <add>4.2</add> | |
37 | </index> | |
38 | <field> | |
39 | <name>label</name> | |
40 | <type>varchar</type> | |
41 | <length>64</length> | |
42 | <localizable>true</localizable> | |
43 | <comment>Friendly Name.</comment> | |
44 | <add>3.3</add> | |
45 | <drop>4.2</drop> | |
46 | </field> | |
47 | <field> | |
48 | <name>title</name> | |
61ce9b45 | 49 | <title>Batch Title</title> |
6a488035 | 50 | <type>varchar</type> |
59ccff56 | 51 | <length>255</length> |
6a488035 TO |
52 | <localizable>true</localizable> |
53 | <comment>Friendly Name.</comment> | |
54 | <add>4.2</add> | |
614d72ec | 55 | <html> |
56 | <type>Text</type> | |
57 | </html> | |
6a488035 TO |
58 | </field> |
59 | <field> | |
60 | <name>description</name> | |
61ce9b45 | 61 | <title>Batch Description</title> |
6a488035 TO |
62 | <type>text</type> |
63 | <comment>Description of this batch set.</comment> | |
64 | <localizable>true</localizable> | |
7deea513 | 65 | <html> |
66 | <type>TextArea</type> | |
817807ab | 67 | <rows>4</rows> |
68 | <cols>80</cols> | |
7deea513 | 69 | </html> |
6a488035 TO |
70 | <add>3.3</add> |
71 | </field> | |
72 | <field> | |
73 | <name>created_id</name> | |
61ce9b45 | 74 | <title>Batch Created By</title> |
6a488035 TO |
75 | <type>int unsigned</type> |
76 | <comment>FK to Contact ID</comment> | |
77 | <add>3.3</add> | |
78 | </field> | |
79 | <foreignKey> | |
80 | <name>created_id</name> | |
81 | <table>civicrm_contact</table> | |
82 | <key>id</key> | |
83 | <add>3.3</add> | |
84 | <onDelete>SET NULL</onDelete> | |
85 | </foreignKey> | |
86 | <field> | |
87 | <name>created_date</name> | |
61ce9b45 | 88 | <title>Batch Created Date</title> |
6a488035 TO |
89 | <type>datetime</type> |
90 | <comment>When was this item created</comment> | |
91 | <add>3.3</add> | |
614d72ec | 92 | <html> |
93 | <type>Select Date</type> | |
94 | </html> | |
6a488035 TO |
95 | </field> |
96 | <field> | |
97 | <name>modified_id</name> | |
61ce9b45 | 98 | <title>Batch Modified By</title> |
6a488035 TO |
99 | <type>int unsigned</type> |
100 | <comment>FK to Contact ID</comment> | |
101 | <add>3.3</add> | |
102 | </field> | |
103 | <field> | |
104 | <name>modified_date</name> | |
61ce9b45 | 105 | <title>Batch Modified Date</title> |
6a488035 TO |
106 | <type>datetime</type> |
107 | <comment>When was this item created</comment> | |
108 | <add>3.3</add> | |
109 | </field> | |
110 | <foreignKey> | |
111 | <name>modified_id</name> | |
112 | <table>civicrm_contact</table> | |
113 | <key>id</key> | |
114 | <add>3.3</add> | |
115 | <onDelete>SET NULL</onDelete> | |
116 | </foreignKey> | |
117 | <field> | |
118 | <name>saved_search_id</name> | |
61ce9b45 | 119 | <title>Batch Smart Group</title> |
6a488035 TO |
120 | <type>int unsigned</type> |
121 | <comment>FK to Saved Search ID</comment> | |
122 | <add>4.1</add> | |
614d72ec | 123 | <html> |
916b6181 | 124 | <type>EntityRef</type> |
614d72ec | 125 | </html> |
6a488035 TO |
126 | </field> |
127 | <foreignKey> | |
128 | <name>saved_search_id</name> | |
129 | <table>civicrm_saved_search</table> | |
130 | <key>id</key> | |
131 | <add>4.2</add> | |
132 | <onDelete>SET NULL</onDelete> | |
133 | </foreignKey> | |
134 | <field> | |
135 | <name>status_id</name> | |
61ce9b45 | 136 | <title>Batch Status</title> |
6a488035 TO |
137 | <type>int unsigned</type> |
138 | <required>true</required> | |
139 | <comment>fk to Batch Status options in civicrm_option_values</comment> | |
140 | <add>4.2</add> | |
97afa853 AS |
141 | <pseudoconstant> |
142 | <optionGroupName>batch_status</optionGroupName> | |
143 | </pseudoconstant> | |
614d72ec | 144 | <html> |
e0991796 | 145 | <type>Select</type> |
614d72ec | 146 | </html> |
6a488035 TO |
147 | </field> |
148 | <field> | |
149 | <name>type_id</name> | |
61ce9b45 | 150 | <title>Batch Type</title> |
6a488035 TO |
151 | <type>int unsigned</type> |
152 | <comment>fk to Batch Type options in civicrm_option_values</comment> | |
153 | <add>4.2</add> | |
97afa853 AS |
154 | <pseudoconstant> |
155 | <optionGroupName>batch_type</optionGroupName> | |
156 | </pseudoconstant> | |
614d72ec | 157 | <html> |
e0991796 | 158 | <type>Select</type> |
614d72ec | 159 | </html> |
6a488035 TO |
160 | </field> |
161 | <field> | |
162 | <name>mode_id</name> | |
61ce9b45 | 163 | <title>Batch Mode</title> |
6a488035 TO |
164 | <type>int unsigned</type> |
165 | <comment>fk to Batch mode options in civicrm_option_values</comment> | |
166 | <add>4.2</add> | |
e7e657f0 AS |
167 | <pseudoconstant> |
168 | <optionGroupName>batch_mode</optionGroupName> | |
169 | </pseudoconstant> | |
614d72ec | 170 | <html> |
e0991796 | 171 | <type>Select</type> |
614d72ec | 172 | </html> |
6a488035 TO |
173 | </field> |
174 | <field> | |
175 | <name>total</name> | |
61ce9b45 | 176 | <title>Batch Total</title> |
6a488035 TO |
177 | <type>decimal</type> |
178 | <comment>Total amount for this batch.</comment> | |
179 | <add>4.2</add> | |
614d72ec | 180 | <html> |
181 | <type>Text</type> | |
182 | </html> | |
6a488035 TO |
183 | </field> |
184 | <field> | |
185 | <name>item_count</name> | |
61ce9b45 | 186 | <title>Batch Number of Items</title> |
6a488035 TO |
187 | <type>int unsigned</type> |
188 | <comment>Number of items in a batch.</comment> | |
189 | <add>4.2</add> | |
614d72ec | 190 | <html> |
191 | <type>Text</type> | |
192 | </html> | |
6a488035 TO |
193 | </field> |
194 | <field> | |
195 | <name>payment_instrument_id</name> | |
536f0e02 | 196 | <title>Batch Payment Method</title> |
6a488035 TO |
197 | <type>int unsigned</type> |
198 | <comment>fk to Payment Instrument options in civicrm_option_values</comment> | |
6d68a4cb CW |
199 | <pseudoconstant> |
200 | <optionGroupName>payment_instrument</optionGroupName> | |
201 | </pseudoconstant> | |
614d72ec | 202 | <html> |
e0991796 | 203 | <type>Select</type> |
614d72ec | 204 | </html> |
6a488035 TO |
205 | <add>4.3</add> |
206 | </field> | |
207 | <field> | |
208 | <name>exported_date</name> | |
61ce9b45 | 209 | <title>Batch Exported Date</title> |
6a488035 TO |
210 | <type>datetime</type> |
211 | <add>4.3</add> | |
212 | </field> | |
638aee74 | 213 | <field> |
214 | <name>data</name> | |
61ce9b45 | 215 | <title>Batch Data</title> |
638aee74 | 216 | <type>longtext</type> |
217 | <comment>cache entered data</comment> | |
218 | <add>4.4</add> | |
219 | </field> | |
6a488035 | 220 | </table> |