Merge pull request #22154 from eileenmcnaughton/n3
[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>MailingComponent</class>
6 <name>civicrm_mailing_component</name>
7 <comment>Stores information about the mailing components (header/footer).</comment>
8 <component>CiviMail</component>
9 <field>
10 <name>id</name>
11 <title>Mailing Component ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <html>
15 <type>Number</type>
16 </html>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>name</name>
24 <title>Component Name</title>
25 <type>varchar</type>
26 <length>64</length>
27 <comment>The name of this component</comment>
28 </field>
29 <field>
30 <name>component_type</name>
31 <title>Mailing Component Type</title>
32 <type>varchar</type>
33 <length>12</length>
34 <comment>Type of Component.</comment>
35 <pseudoconstant>
36 <callback>CRM_Core_SelectValues::mailingComponents</callback>
37 </pseudoconstant>
38 <html>
39 <type>Select</type>
40 </html>
41 </field>
42 <field>
43 <name>subject</name>
44 <type>varchar</type>
45 <length>255</length>
46 <html>
47 <label>Subject</label>
48 </html>
49 </field>
50 <field>
51 <name>body_html</name>
52 <title>Mailing Component Body HTML</title>
53 <type>text</type>
54 <comment>Body of the component in html format.</comment>
55 <html>
56 <type>TextArea</type>
57 <rows>8</rows>
58 <cols>80</cols>
59 </html>
60 </field>
61 <field>
62 <name>body_text</name>
63 <type>text</type>
64 <comment>Body of the component in text format.</comment>
65 <html>
66 <type>TextArea</type>
67 <rows>8</rows>
68 <cols>80</cols>
69 <label>Body in Text Format</label>
70 </html>
71 </field>
72 <field>
73 <name>is_default</name>
74 <title>Mailing Component is Default?</title>
75 <type>boolean</type>
76 <default>0</default>
77 <comment>Is this the default component for this component_type?</comment>
78 </field>
79 <field>
80 <name>is_active</name>
81 <title>Mailing Component Is Active?</title>
82 <type>boolean</type>
83 <comment>Is this property active?</comment>
84 </field>
85 </table>