CRM-13497 - Add html type to schema xml
[civicrm-core.git] / xml / schema / Batch / Batch.xml
CommitLineData
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>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Unique Address ID</comment>
14 <add>3.3</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>name</name>
22 <type>varchar</type>
23 <length>64</length>
24 <comment>Variable name/programmatic handle for this batch.</comment>
25 <add>3.3</add>
26 </field>
27 <index>
28 <name>UI_name</name>
29 <fieldName>name</fieldName>
30 <unique>true</unique>
31 <add>4.2</add>
32 </index>
33 <field>
34 <name>label</name>
35 <type>varchar</type>
36 <length>64</length>
37 <localizable>true</localizable>
38 <comment>Friendly Name.</comment>
39 <add>3.3</add>
40 <drop>4.2</drop>
41 </field>
42 <field>
43 <name>title</name>
44 <type>varchar</type>
45 <length>64</length>
46 <localizable>true</localizable>
47 <comment>Friendly Name.</comment>
48 <add>4.2</add>
49 </field>
50 <field>
51 <name>description</name>
52 <type>text</type>
53 <comment>Description of this batch set.</comment>
54 <localizable>true</localizable>
7deea513 55 <html>
56 <type>TextArea</type>
57 </html>
58
6a488035
TO
59 <rows>4</rows>
60 <cols>80</cols>
61 <add>3.3</add>
62 </field>
63 <field>
64 <name>created_id</name>
65 <type>int unsigned</type>
66 <comment>FK to Contact ID</comment>
67 <add>3.3</add>
68 </field>
69 <foreignKey>
70 <name>created_id</name>
71 <table>civicrm_contact</table>
72 <key>id</key>
73 <add>3.3</add>
74 <onDelete>SET NULL</onDelete>
75 </foreignKey>
76 <field>
77 <name>created_date</name>
78 <type>datetime</type>
79 <comment>When was this item created</comment>
80 <add>3.3</add>
81 </field>
82 <field>
83 <name>modified_id</name>
84 <type>int unsigned</type>
85 <comment>FK to Contact ID</comment>
86 <add>3.3</add>
87 </field>
88 <field>
89 <name>modified_date</name>
90 <type>datetime</type>
91 <comment>When was this item created</comment>
92 <add>3.3</add>
93 </field>
94 <foreignKey>
95 <name>modified_id</name>
96 <table>civicrm_contact</table>
97 <key>id</key>
98 <add>3.3</add>
99 <onDelete>SET NULL</onDelete>
100 </foreignKey>
101 <field>
102 <name>saved_search_id</name>
103 <type>int unsigned</type>
104 <comment>FK to Saved Search ID</comment>
105 <add>4.1</add>
106 </field>
107 <foreignKey>
108 <name>saved_search_id</name>
109 <table>civicrm_saved_search</table>
110 <key>id</key>
111 <add>4.2</add>
112 <onDelete>SET NULL</onDelete>
113 </foreignKey>
114 <field>
115 <name>status_id</name>
116 <type>int unsigned</type>
117 <required>true</required>
118 <comment>fk to Batch Status options in civicrm_option_values</comment>
119 <add>4.2</add>
97afa853
AS
120 <pseudoconstant>
121 <optionGroupName>batch_status</optionGroupName>
122 </pseudoconstant>
6a488035
TO
123 </field>
124 <field>
125 <name>type_id</name>
126 <type>int unsigned</type>
127 <comment>fk to Batch Type options in civicrm_option_values</comment>
128 <add>4.2</add>
97afa853
AS
129 <pseudoconstant>
130 <optionGroupName>batch_type</optionGroupName>
131 </pseudoconstant>
6a488035
TO
132 </field>
133 <field>
134 <name>mode_id</name>
135 <type>int unsigned</type>
136 <comment>fk to Batch mode options in civicrm_option_values</comment>
137 <add>4.2</add>
e7e657f0
AS
138 <pseudoconstant>
139 <optionGroupName>batch_mode</optionGroupName>
140 </pseudoconstant>
6a488035
TO
141 </field>
142 <field>
143 <name>total</name>
144 <type>decimal</type>
145 <comment>Total amount for this batch.</comment>
146 <add>4.2</add>
147 </field>
148 <field>
149 <name>item_count</name>
150 <type>int unsigned</type>
151 <comment>Number of items in a batch.</comment>
152 <add>4.2</add>
153 </field>
154 <field>
155 <name>payment_instrument_id</name>
156 <type>int unsigned</type>
157 <comment>fk to Payment Instrument options in civicrm_option_values</comment>
6d68a4cb
CW
158 <pseudoconstant>
159 <optionGroupName>payment_instrument</optionGroupName>
160 </pseudoconstant>
6a488035
TO
161 <add>4.3</add>
162 </field>
163 <field>
164 <name>exported_date</name>
165 <type>datetime</type>
166 <add>4.3</add>
167 </field>
638aee74 168 <field>
169 <name>data</name>
170 <type>longtext</type>
171 <comment>cache entered data</comment>
172 <add>4.4</add>
173 </field>
6a488035 174</table>