Import from SVN (r45945, r596)
[civicrm-core.git] / xml / schema / Mailing / Component.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Mailing</base>
5 <class>Component</class>
6 <name>civicrm_mailing_component</name>
7 <comment>Stores information about the mailing components (header/footer).</comment>
8 <field>
9 <name>id</name>
10 <type>int unsigned</type>
11 <required>true</required>
12 </field>
13 <primaryKey>
14 <name>id</name>
15 <autoincrement>true</autoincrement>
16 </primaryKey>
17 <field>
18 <name>name</name>
19 <title>Component Name</title>
20 <type>varchar</type>
21 <length>64</length>
22 <comment>The name of this component</comment>
23 </field>
24 <field>
25 <name>component_type</name>
26 <type>enum</type>
27 <values>Header, Footer, Subscribe, Welcome, Unsubscribe, OptOut, Reply, Resubscribe</values>
28 <comment>Type of Component.</comment>
29 </field>
30 <field>
31 <name>subject</name>
32 <type>varchar</type>
33 <length>255</length>
34 </field>
35 <field>
36 <name>body_html</name>
37 <type>text</type>
38 <comment>Body of the component in html format.</comment>
39 <htmlType>textarea</htmlType>
40 <rows>8</rows>
41 <cols>80</cols>
42 </field>
43 <field>
44 <name>body_text</name>
45 <type>text</type>
46 <comment>Body of the component in text format.</comment>
47 <htmlType>textarea</htmlType>
48 <rows>8</rows>
49 <cols>80</cols>
50 </field>
51 <field>
52 <name>is_default</name>
53 <type>boolean</type>
54 <default>0</default>
55 <comment>Is this the default component for this component_type?</comment>
56 </field>
57 <field>
58 <name>is_active</name>
59 <type>boolean</type>
60 <comment>Is this property active?</comment>
61 </field>
62 </table>