Merge pull request #21943 from mattwire/gccacheignore
[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>
0481e12c
A
15 <html>
16 <type>Number</type>
17 </html>
8f069c03 18 <add>1.6</add>
6a488035
TO
19 </field>
20 <primaryKey>
8f069c03
EM
21 <name>id</name>
22 <autoincrement>true</autoincrement>
6a488035
TO
23 </primaryKey>
24 <field>
8f069c03 25 <name>msg_title</name>
0d94665e 26 <title>Message Template Title</title>
8f069c03
EM
27 <type>varchar</type>
28 <length>255</length>
29 <comment>Descriptive title of message</comment>
30 <add>1.6</add>
6a488035
TO
31 </field>
32 <field>
8f069c03 33 <name>msg_subject</name>
0d94665e 34 <title>Message Template Subject</title>
8f069c03
EM
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 -->
6a488035
TO
39 </field>
40 <field>
8f069c03 41 <name>msg_text</name>
0d94665e 42 <title>Message Template Text</title>
8f069c03
EM
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 -->
6a488035
TO
52 </field>
53 <field>
8f069c03 54 <name>msg_html</name>
0d94665e 55 <title>Message Template HTML</title>
8f069c03
EM
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 -->
6a488035 65 </field>
3c7d2158 66 <field>
8f069c03
EM
67 <name>is_active</name>
68 <title>Is Active</title>
69 <type>boolean</type>
70 <default>1</default>
c1e814c7 71 <required>true</required>
8f069c03 72 <add>1.6</add>
3c7d2158 73 </field>
6a488035 74 <field>
8f069c03 75 <name>workflow_id</name>
c4d7103b 76 <title>Deprecated field for Message Template Workflow.</title>
8f069c03
EM
77 <type>int unsigned</type>
78 <comment>a pseudo-FK to civicrm_option_value</comment>
79 <add>3.1</add>
6a488035 80 </field>
c4d7103b 81 <field>
82 <name>workflow_name</name>
83 <title>Message Template Workflow Name</title>
84 <type>varchar</type>
85 <length>255</length>
86 <add>5.26</add>
87 </field>
6a488035 88 <field>
8f069c03 89 <name>is_default</name>
0d94665e 90 <title>Message Template Is Default?</title>
8f069c03
EM
91 <type>boolean</type>
92 <default>1</default>
c1e814c7 93 <required>true</required>
8f069c03
EM
94 <comment>is this the default message template for the workflow referenced by workflow_id?</comment>
95 <add>3.1</add>
6a488035
TO
96 </field>
97 <field>
8f069c03 98 <name>is_reserved</name>
0d94665e 99 <title>Message Template Is Reserved?</title>
8f069c03 100 <type>boolean</type>
4dbadd81 101 <default>0</default>
c1e814c7 102 <required>true</required>
8f069c03
EM
103 <comment>is this the reserved message template which we ship for the workflow referenced by workflow_id?</comment>
104 <add>3.1</add>
6a488035 105 </field>
1e035d58 106 <field>
107 <name>is_sms</name>
108 <title>Message Template is used for SMS?</title>
109 <type>boolean</type>
110 <default>0</default>
c1e814c7 111 <required>true</required>
1e035d58 112 <comment>Is this message template used for sms?</comment>
113 <add>4.5</add>
114 </field>
6a488035 115 <field>
8f069c03 116 <name>pdf_format_id</name>
0d94665e 117 <title>Message Template Format</title>
8f069c03
EM
118 <type>int unsigned</type>
119 <comment>a pseudo-FK to civicrm_option_value containing PDF Page Format.</comment>
120 <pseudoconstant>
121 <optionGroupName>pdf_format</optionGroupName>
69981ba5 122 <keyColumn>id</keyColumn>
8f069c03
EM
123 </pseudoconstant>
124 <add>3.4</add>
6a488035 125 </field>
6a488035 126</table>