Merge pull request #21753 from civicrm/5.42
[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 <html>
16 <type>Number</type>
17 </html>
18 <add>1.6</add>
19 </field>
20 <primaryKey>
21 <name>id</name>
22 <autoincrement>true</autoincrement>
23 </primaryKey>
24 <field>
25 <name>msg_title</name>
26 <title>Message Template Title</title>
27 <type>varchar</type>
28 <length>255</length>
29 <comment>Descriptive title of message</comment>
30 <add>1.6</add>
31 </field>
32 <field>
33 <name>msg_subject</name>
34 <title>Message Template Subject</title>
35 <type>text</type>
36 <comment>Subject for email message.</comment>
37 <add>1.6</add>
38 <!-- type changed from VARCHAR(255) to TEXT in 3.1 -->
39 </field>
40 <field>
41 <name>msg_text</name>
42 <title>Message Template Text</title>
43 <type>longtext</type>
44 <html>
45 <type>TextArea</type>
46 <rows>10</rows>
47 <cols>75</cols>
48 </html>
49 <comment>Text formatted message</comment>
50 <add>1.6</add>
51 <!-- type changed from TEXT to LONGTEXT in 4.3 -->
52 </field>
53 <field>
54 <name>msg_html</name>
55 <title>Message Template HTML</title>
56 <type>longtext</type>
57 <html>
58 <type>RichTextEditor</type>
59 <rows>10</rows>
60 <cols>75</cols>
61 </html>
62 <comment>HTML formatted message</comment>
63 <add>1.6</add>
64 <!-- type changed from TEXT to LONGTEXT in 4.3 -->
65 </field>
66 <field>
67 <name>is_active</name>
68 <title>Is Active</title>
69 <type>boolean</type>
70 <default>1</default>
71 <add>1.6</add>
72 </field>
73 <field>
74 <name>workflow_id</name>
75 <title>Deprecated field for Message Template Workflow.</title>
76 <type>int unsigned</type>
77 <comment>a pseudo-FK to civicrm_option_value</comment>
78 <add>3.1</add>
79 </field>
80 <field>
81 <name>workflow_name</name>
82 <title>Message Template Workflow Name</title>
83 <type>varchar</type>
84 <length>255</length>
85 <add>5.26</add>
86 </field>
87 <field>
88 <name>is_default</name>
89 <title>Message Template Is Default?</title>
90 <type>boolean</type>
91 <default>1</default>
92 <comment>is this the default message template for the workflow referenced by workflow_id?</comment>
93 <add>3.1</add>
94 </field>
95 <field>
96 <name>is_reserved</name>
97 <title>Message Template Is Reserved?</title>
98 <type>boolean</type>
99 <default>0</default>
100 <comment>is this the reserved message template which we ship for the workflow referenced by workflow_id?</comment>
101 <add>3.1</add>
102 </field>
103 <field>
104 <name>is_sms</name>
105 <title>Message Template is used for SMS?</title>
106 <type>boolean</type>
107 <default>0</default>
108 <comment>Is this message template used for sms?</comment>
109 <add>4.5</add>
110 </field>
111 <field>
112 <name>pdf_format_id</name>
113 <title>Message Template Format</title>
114 <type>int unsigned</type>
115 <comment>a pseudo-FK to civicrm_option_value containing PDF Page Format.</comment>
116 <pseudoconstant>
117 <optionGroupName>pdf_format</optionGroupName>
118 <keyColumn>id</keyColumn>
119 </pseudoconstant>
120 <add>3.4</add>
121 </field>
122 </table>