CRM-13497 - Add html type to schema xml
[civicrm-core.git] / xml / schema / Mailing / Component.xml
CommitLineData
6a488035
TO
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>
7deea513 39 <html>
40 <type>TextArea</type>
41 </html>
42
6a488035
TO
43 <rows>8</rows>
44 <cols>80</cols>
45 </field>
46 <field>
47 <name>body_text</name>
48 <type>text</type>
49 <comment>Body of the component in text format.</comment>
7deea513 50 <html>
51 <type>TextArea</type>
52 </html>
53
6a488035
TO
54 <rows>8</rows>
55 <cols>80</cols>
56 </field>
57 <field>
58 <name>is_default</name>
59 <type>boolean</type>
60 <default>0</default>
61 <comment>Is this the default component for this component_type?</comment>
62 </field>
63 <field>
64 <name>is_active</name>
65 <type>boolean</type>
66 <comment>Is this property active?</comment>
67 </field>
68</table>