Merge pull request #1023 from davecivicrm/CRM-9759
[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 <type>int unsigned</type>
13 <length>10</length>
14 <required>true</required>
15 <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>
16 <add>1.3</add>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>name</name>
24 <uniqueName>financial_type</uniqueName>
25 <title>Financial Type</title>
26 <type>varchar</type>
27 <length>64</length>
28 <required>true</required>
29 <import>true</import>
30 <headerPattern>/(finan(cial)?)?type/i</headerPattern>
31 <dataPattern>/donation|member|campaign/i</dataPattern>
32 <comment>Financial Type Name.</comment>
33 <add>1.3</add>
34 </field>
35 <field>
36 <name>accounting_code</name>
37 <title>Accounting Code</title>
38 <type>varchar</type>
39 <length>64</length>
40 <export>true</export>
41 <comment>Optional value for mapping contributions to accounting system codes for each type/category of contribution.</comment>
42 <add>1.3</add>
43 <drop>4.3</drop>
44 </field>
45 <field>
46 <name>description</name>
47 <type>varchar</type>
48 <length>255</length>
49 <comment>Financial Type Description.</comment>
50 <add>1.3</add>
51 </field>
52 <field>
53 <name>is_deductible</name>
54 <type>boolean</type>
55 <length>4</length>
56 <default>1</default>
57 <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>
58 <add>1.3</add>
59 </field>
60 <field>
61 <name>is_reserved</name>
62 <type>boolean</type>
63 <length>4</length>
64 <comment>Is this a predefined system object?</comment>
65 <add>1.3</add>
66 </field>
67 <field>
68 <name>is_active</name>
69 <type>boolean</type>
70 <length>4</length>
71 <comment>Is this property active?</comment>
72 <add>1.3</add>
73 </field>
74 <index>
75 <name>UI_id</name>
76 <fieldName>id</fieldName>
77 <unique>true</unique>
78 <add>4.3</add>
79 </index>
80 </table>