Merge pull request #15824 from mfb/email-search-speed-boost
[civicrm-core.git] / xml / schema / Financial / FinancialType.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Financial</base>
5 <class>FinancialType</class>
6 <name>civicrm_financial_type</name>
7 <add>1.3</add>
8 <comment>Formerly civicrm_contribution_type merged into this table in 4.3</comment>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <title>Financial Type ID</title>
13 <type>int unsigned</type>
14 <length>10</length>
15 <required>true</required>
16 <comment>ID of original financial_type so you can search this table by the financial_type.id and then select the relevant version based on the timestamp</comment>
17 <add>1.3</add>
18 </field>
19 <primaryKey>
20 <name>id</name>
21 <autoincrement>true</autoincrement>
22 </primaryKey>
23 <field>
24 <name>name</name>
25 <uniqueName>financial_type</uniqueName>
26 <title>Financial Type</title>
27 <type>varchar</type>
28 <length>64</length>
29 <required>true</required>
30 <import>true</import>
31 <headerPattern>/(finan(cial)?)?type/i</headerPattern>
32 <dataPattern>/donation|member|campaign/i</dataPattern>
33 <comment>Financial Type Name.</comment>
34 <html>
35 <type>Text</type>
36 <label>Name</label>
37 </html>
38 <add>1.3</add>
39 </field>
40 <field>
41 <name>accounting_code</name>
42 <title>Accounting Code</title>
43 <type>varchar</type>
44 <length>64</length>
45 <export>true</export>
46 <comment>Optional value for mapping contributions to accounting system codes for each type/category of contribution.</comment>
47 <add>1.3</add>
48 <drop>4.3</drop>
49 </field>
50 <field>
51 <name>description</name>
52 <type>varchar</type>
53 <html>
54 <type>TextArea</type>
55 <rows>6</rows>
56 <cols>50</cols>
57 <label>Description</label>
58 </html>
59 <length>255</length>
60 <comment>Financial Type Description.</comment>
61 <add>1.3</add>
62 </field>
63 <field>
64 <name>is_deductible</name>
65 <title>Is Tax Deductible?</title>
66 <type>boolean</type>
67 <length>4</length>
68 <default>1</default>
69 <comment>Is this financial type tax-deductible? If true, contributions of this type may be fully OR partially deductible - non-deductible amount is stored in the Contribution record.</comment>
70 <add>1.3</add>
71 <html>
72 <type>CheckBox</type>
73 <label>Tax-Deductible?</label>
74 </html>
75 </field>
76 <field>
77 <name>is_reserved</name>
78 <title>Financial Type is Reserved?</title>
79 <type>boolean</type>
80 <length>4</length>
81 <comment>Is this a predefined system object?</comment>
82 <add>1.3</add>
83 <html>
84 <type>CheckBox</type>
85 <label>Reserved?</label>
86 </html>
87 </field>
88 <field>
89 <name>is_active</name>
90 <type>boolean</type>
91 <title>Financial Type Is Active?</title>
92 <length>4</length>
93 <comment>Is this property active?</comment>
94 <add>1.3</add>
95 <html>
96 <type>CheckBox</type>
97 <label>Enabled?</label>
98 </html>
99 </field>
100 <index>
101 <name>UI_id</name>
102 <fieldName>id</fieldName>
103 <unique>true</unique>
104 <add>4.3</add>
105 </index>
106 </table>