Merge pull request #19066 from colemanw/tabCleanup
[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 <component>CiviContribute</component>
11 <field>
12 <name>id</name>
13 <title>Financial Type ID</title>
14 <type>int unsigned</type>
15 <length>10</length>
16 <required>true</required>
17 <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>
18 <add>1.3</add>
19 </field>
20 <primaryKey>
21 <name>id</name>
22 <autoincrement>true</autoincrement>
23 </primaryKey>
24 <field>
25 <name>name</name>
26 <uniqueName>financial_type</uniqueName>
27 <title>Financial Type</title>
28 <type>varchar</type>
29 <length>64</length>
30 <required>true</required>
31 <import>true</import>
32 <headerPattern>/(finan(cial)?)?type/i</headerPattern>
33 <dataPattern>/donation|member|campaign/i</dataPattern>
34 <comment>Financial Type Name.</comment>
35 <html>
36 <type>Text</type>
37 <label>Name</label>
38 </html>
39 <add>1.3</add>
40 </field>
41 <field>
42 <name>description</name>
43 <type>varchar</type>
44 <html>
45 <type>TextArea</type>
46 <rows>6</rows>
47 <cols>50</cols>
48 <label>Description</label>
49 </html>
50 <length>255</length>
51 <comment>Financial Type Description.</comment>
52 <add>1.3</add>
53 </field>
54 <field>
55 <name>is_deductible</name>
56 <title>Is Tax Deductible?</title>
57 <type>boolean</type>
58 <length>4</length>
59 <default>1</default>
60 <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>
61 <add>1.3</add>
62 <html>
63 <type>CheckBox</type>
64 <label>Tax-Deductible?</label>
65 </html>
66 </field>
67 <field>
68 <name>is_reserved</name>
69 <title>Financial Type is Reserved?</title>
70 <type>boolean</type>
71 <length>4</length>
72 <comment>Is this a predefined system object?</comment>
73 <add>1.3</add>
74 <html>
75 <type>CheckBox</type>
76 <label>Reserved?</label>
77 </html>
78 </field>
79 <field>
80 <name>is_active</name>
81 <type>boolean</type>
82 <title>Financial Type Is Active?</title>
83 <length>4</length>
84 <comment>Is this property active?</comment>
85 <add>1.3</add>
86 <html>
87 <type>CheckBox</type>
88 <label>Enabled?</label>
89 </html>
90 </field>
91 <index>
92 <name>UI_id</name>
93 <fieldName>id</fieldName>
94 <unique>true</unique>
95 <add>4.3</add>
96 </index>
97 </table>