Merge pull request #18912 from yashodha/dev_2153
[civicrm-core.git] / xml / schema / Core / MessageTemplate.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>MessageTemplate</class>
6 <name>civicrm_msg_template</name>
7 <comment>Users will need a way to save and retrieve templates with tokens for use in recurring email communication tasks</comment>
8 <add>1.6</add>
9 <field>
10 <name>id</name>
11 <title>Message Template ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Message Template ID</comment>
15 <add>1.6</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>msg_title</name>
23 <title>Message Template Title</title>
24 <type>varchar</type>
25 <length>255</length>
26 <comment>Descriptive title of message</comment>
27 <add>1.6</add>
28 </field>
29 <field>
30 <name>msg_subject</name>
31 <title>Message Template Subject</title>
32 <type>text</type>
33 <comment>Subject for email message.</comment>
34 <add>1.6</add>
35 <!-- type changed from VARCHAR(255) to TEXT in 3.1 -->
36 </field>
37 <field>
38 <name>msg_text</name>
39 <title>Message Template Text</title>
40 <type>longtext</type>
41 <html>
42 <type>TextArea</type>
43 <rows>10</rows>
44 <cols>75</cols>
45 </html>
46 <comment>Text formatted message</comment>
47 <add>1.6</add>
48 <!-- type changed from TEXT to LONGTEXT in 4.3 -->
49 </field>
50 <field>
51 <name>msg_html</name>
52 <title>Message Template HTML</title>
53 <type>longtext</type>
54 <html>
55 <type>RichTextEditor</type>
56 <rows>10</rows>
57 <cols>75</cols>
58 </html>
59 <comment>HTML formatted message</comment>
60 <add>1.6</add>
61 <!-- type changed from TEXT to LONGTEXT in 4.3 -->
62 </field>
63 <field>
64 <name>is_active</name>
65 <title>Is Active</title>
66 <type>boolean</type>
67 <default>1</default>
68 <add>1.6</add>
69 </field>
70 <field>
71 <name>workflow_id</name>
72 <title>Deprecated field for Message Template Workflow.</title>
73 <type>int unsigned</type>
74 <comment>a pseudo-FK to civicrm_option_value</comment>
75 <add>3.1</add>
76 </field>
77 <field>
78 <name>workflow_name</name>
79 <title>Message Template Workflow Name</title>
80 <type>varchar</type>
81 <length>255</length>
82 <add>5.26</add>
83 </field>
84 <field>
85 <name>is_default</name>
86 <title>Message Template Is Default?</title>
87 <type>boolean</type>
88 <default>1</default>
89 <comment>is this the default message template for the workflow referenced by workflow_id?</comment>
90 <add>3.1</add>
91 </field>
92 <field>
93 <name>is_reserved</name>
94 <title>Message Template Is Reserved?</title>
95 <type>boolean</type>
96 <comment>is this the reserved message template which we ship for the workflow referenced by workflow_id?</comment>
97 <add>3.1</add>
98 </field>
99 <field>
100 <name>is_sms</name>
101 <title>Message Template is used for SMS?</title>
102 <type>boolean</type>
103 <default>0</default>
104 <comment>Is this message template used for sms?</comment>
105 <add>4.5</add>
106 </field>
107 <field>
108 <name>pdf_format_id</name>
109 <title>Message Template Format</title>
110 <type>int unsigned</type>
111 <comment>a pseudo-FK to civicrm_option_value containing PDF Page Format.</comment>
112 <pseudoconstant>
113 <optionGroupName>pdf_format</optionGroupName>
114 <keyColumn>id</keyColumn>
115 </pseudoconstant>
116 <add>3.4</add>
117 </field>
118 </table>