CRM-13497 - Move rows and cols
[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 <html>
40 <type>TextArea</type>
41 <rows>8</rows>
42 <cols>80</cols>
43 </html>
44 </field>
45 <field>
46 <name>body_text</name>
47 <type>text</type>
48 <comment>Body of the component in text format.</comment>
49 <html>
50 <type>TextArea</type>
51 <rows>8</rows>
52 <cols>80</cols>
53 </html>
54 </field>
55 <field>
56 <name>is_default</name>
57 <type>boolean</type>
58 <default>0</default>
59 <comment>Is this the default component for this component_type?</comment>
60 </field>
61 <field>
62 <name>is_active</name>
63 <type>boolean</type>
64 <comment>Is this property active?</comment>
65 </field>
66 </table>