Merge pull request #16714 from christianwach/lab-1638
[civicrm-core.git] / xml / schema / Core / MessageTemplate.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Core</base>
c6327d7d 5 <class>MessageTemplate</class>
6a488035
TO
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>
8f069c03 10 <name>id</name>
0d94665e 11 <title>Message Template ID</title>
8f069c03
EM
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Message Template ID</comment>
15 <add>1.6</add>
6a488035
TO
16 </field>
17 <primaryKey>
8f069c03
EM
18 <name>id</name>
19 <autoincrement>true</autoincrement>
6a488035
TO
20 </primaryKey>
21 <field>
8f069c03 22 <name>msg_title</name>
0d94665e 23 <title>Message Template Title</title>
8f069c03
EM
24 <type>varchar</type>
25 <length>255</length>
26 <comment>Descriptive title of message</comment>
27 <add>1.6</add>
6a488035
TO
28 </field>
29 <field>
8f069c03 30 <name>msg_subject</name>
0d94665e 31 <title>Message Template Subject</title>
8f069c03
EM
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 -->
6a488035
TO
36 </field>
37 <field>
8f069c03 38 <name>msg_text</name>
0d94665e 39 <title>Message Template Text</title>
8f069c03
EM
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 -->
6a488035
TO
49 </field>
50 <field>
8f069c03 51 <name>msg_html</name>
0d94665e 52 <title>Message Template HTML</title>
8f069c03
EM
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 -->
6a488035 62 </field>
3c7d2158 63 <field>
8f069c03
EM
64 <name>is_active</name>
65 <title>Is Active</title>
66 <type>boolean</type>
67 <default>1</default>
68 <add>1.6</add>
3c7d2158 69 </field>
6a488035 70 <field>
8f069c03 71 <name>workflow_id</name>
0d94665e 72 <title>Message Template Workflow</title>
8f069c03
EM
73 <type>int unsigned</type>
74 <comment>a pseudo-FK to civicrm_option_value</comment>
75 <add>3.1</add>
6a488035
TO
76 </field>
77 <field>
8f069c03 78 <name>is_default</name>
0d94665e 79 <title>Message Template Is Default?</title>
8f069c03
EM
80 <type>boolean</type>
81 <default>1</default>
82 <comment>is this the default message template for the workflow referenced by workflow_id?</comment>
83 <add>3.1</add>
6a488035
TO
84 </field>
85 <field>
8f069c03 86 <name>is_reserved</name>
0d94665e 87 <title>Message Template Is Reserved?</title>
8f069c03
EM
88 <type>boolean</type>
89 <comment>is this the reserved message template which we ship for the workflow referenced by workflow_id?</comment>
90 <add>3.1</add>
6a488035 91 </field>
1e035d58 92 <field>
93 <name>is_sms</name>
94 <title>Message Template is used for SMS?</title>
95 <type>boolean</type>
96 <default>0</default>
97 <comment>Is this message template used for sms?</comment>
98 <add>4.5</add>
99 </field>
6a488035 100 <field>
8f069c03 101 <name>pdf_format_id</name>
0d94665e 102 <title>Message Template Format</title>
8f069c03
EM
103 <type>int unsigned</type>
104 <comment>a pseudo-FK to civicrm_option_value containing PDF Page Format.</comment>
105 <pseudoconstant>
106 <optionGroupName>pdf_format</optionGroupName>
69981ba5 107 <keyColumn>id</keyColumn>
8f069c03
EM
108 </pseudoconstant>
109 <add>3.4</add>
6a488035 110 </field>
6a488035 111</table>