Merge pull request #3614 from eileenmcnaughton/CRM-14951
[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>
f3800cf8 26 <type>varchar</type>
27 <length>12</length>
6a488035 28 <comment>Type of Component.</comment>
71a707c3 29 <pseudoconstant>
93bfa565 30 <callback>CRM_Core_SelectValues::mailingComponents</callback>
71a707c3 31 </pseudoconstant>
614d72ec 32 <html>
33 <type>Select</type>
34 </html>
6a488035
TO
35 </field>
36 <field>
37 <name>subject</name>
38 <type>varchar</type>
39 <length>255</length>
40 </field>
41 <field>
42 <name>body_html</name>
43 <type>text</type>
44 <comment>Body of the component in html format.</comment>
7deea513 45 <html>
46 <type>TextArea</type>
817807ab 47 <rows>8</rows>
48 <cols>80</cols>
7deea513 49 </html>
817807ab 50 </field>
6a488035
TO
51 <field>
52 <name>body_text</name>
53 <type>text</type>
54 <comment>Body of the component in text format.</comment>
7deea513 55 <html>
56 <type>TextArea</type>
817807ab 57 <rows>8</rows>
58 <cols>80</cols>
7deea513 59 </html>
817807ab 60 </field>
6a488035
TO
61 <field>
62 <name>is_default</name>
63 <type>boolean</type>
64 <default>0</default>
65 <comment>Is this the default component for this component_type?</comment>
66 </field>
67 <field>
68 <name>is_active</name>
69 <type>boolean</type>
70 <comment>Is this property active?</comment>
71 </field>
72</table>