Merge pull request #18370 from KarinG/tidyup_testSubmitContributionPageWithPriceSetQu...
[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>
c4d7103b 72 <title>Deprecated field for 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 76 </field>
c4d7103b 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>
6a488035 84 <field>
8f069c03 85 <name>is_default</name>
0d94665e 86 <title>Message Template Is Default?</title>
8f069c03
EM
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>
6a488035
TO
91 </field>
92 <field>
8f069c03 93 <name>is_reserved</name>
0d94665e 94 <title>Message Template Is Reserved?</title>
8f069c03
EM
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>
6a488035 98 </field>
1e035d58 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>
6a488035 107 <field>
8f069c03 108 <name>pdf_format_id</name>
0d94665e 109 <title>Message Template Format</title>
8f069c03
EM
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>
69981ba5 114 <keyColumn>id</keyColumn>
8f069c03
EM
115 </pseudoconstant>
116 <add>3.4</add>
6a488035 117 </field>
6a488035 118</table>