Merge pull request #19525 from eileenmcnaughton/member_soft
[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>
807f8008 5 <class>MailingComponent</class>
6a488035
TO
6 <name>civicrm_mailing_component</name>
7 <comment>Stores information about the mailing components (header/footer).</comment>
d31fb4e3 8 <component>CiviMail</component>
6a488035 9 <field>
5435b737 10 <name>id</name>
0d94665e 11 <title>Mailing Component ID</title>
5435b737
EM
12 <type>int unsigned</type>
13 <required>true</required>
0481e12c
A
14 <html>
15 <type>Number</type>
16 </html>
6a488035
TO
17 </field>
18 <primaryKey>
5435b737
EM
19 <name>id</name>
20 <autoincrement>true</autoincrement>
6a488035
TO
21 </primaryKey>
22 <field>
5435b737
EM
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>
6a488035
TO
28 </field>
29 <field>
5435b737 30 <name>component_type</name>
0d94665e 31 <title>Mailing Component Type</title>
5435b737
EM
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>
6a488035
TO
41 </field>
42 <field>
5435b737
EM
43 <name>subject</name>
44 <type>varchar</type>
45 <length>255</length>
6a488035
TO
46 </field>
47 <field>
5435b737 48 <name>body_html</name>
0d94665e 49 <title>Mailing Component Body HTML</title>
5435b737
EM
50 <type>text</type>
51 <comment>Body of the component in html format.</comment>
52 <html>
53 <type>TextArea</type>
54 <rows>8</rows>
55 <cols>80</cols>
56 </html>
57 </field>
6a488035 58 <field>
5435b737
EM
59 <name>body_text</name>
60 <type>text</type>
61 <comment>Body of the component in text format.</comment>
62 <html>
63 <type>TextArea</type>
64 <rows>8</rows>
65 <cols>80</cols>
66 </html>
67 </field>
6a488035 68 <field>
5435b737 69 <name>is_default</name>
0d94665e 70 <title>Mailing Component is Default?</title>
5435b737
EM
71 <type>boolean</type>
72 <default>0</default>
73 <comment>Is this the default component for this component_type?</comment>
6a488035
TO
74 </field>
75 <field>
5435b737 76 <name>is_active</name>
0d94665e 77 <title>Mailing Component Is Active?</title>
5435b737
EM
78 <type>boolean</type>
79 <comment>Is this property active?</comment>
6a488035
TO
80 </field>
81</table>