Commit | Line | Data |
---|---|---|
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> | |
71 | <add>1.6</add> | |
3c7d2158 | 72 | </field> |
6a488035 | 73 | <field> |
8f069c03 | 74 | <name>workflow_id</name> |
c4d7103b | 75 | <title>Deprecated field for Message Template Workflow.</title> |
8f069c03 EM |
76 | <type>int unsigned</type> |
77 | <comment>a pseudo-FK to civicrm_option_value</comment> | |
78 | <add>3.1</add> | |
6a488035 | 79 | </field> |
c4d7103b | 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> | |
6a488035 | 87 | <field> |
8f069c03 | 88 | <name>is_default</name> |
0d94665e | 89 | <title>Message Template Is Default?</title> |
8f069c03 EM |
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> | |
6a488035 TO |
94 | </field> |
95 | <field> | |
8f069c03 | 96 | <name>is_reserved</name> |
0d94665e | 97 | <title>Message Template Is Reserved?</title> |
8f069c03 EM |
98 | <type>boolean</type> |
99 | <comment>is this the reserved message template which we ship for the workflow referenced by workflow_id?</comment> | |
100 | <add>3.1</add> | |
6a488035 | 101 | </field> |
1e035d58 | 102 | <field> |
103 | <name>is_sms</name> | |
104 | <title>Message Template is used for SMS?</title> | |
105 | <type>boolean</type> | |
106 | <default>0</default> | |
107 | <comment>Is this message template used for sms?</comment> | |
108 | <add>4.5</add> | |
109 | </field> | |
6a488035 | 110 | <field> |
8f069c03 | 111 | <name>pdf_format_id</name> |
0d94665e | 112 | <title>Message Template Format</title> |
8f069c03 EM |
113 | <type>int unsigned</type> |
114 | <comment>a pseudo-FK to civicrm_option_value containing PDF Page Format.</comment> | |
115 | <pseudoconstant> | |
116 | <optionGroupName>pdf_format</optionGroupName> | |
69981ba5 | 117 | <keyColumn>id</keyColumn> |
8f069c03 EM |
118 | </pseudoconstant> |
119 | <add>3.4</add> | |
6a488035 | 120 | </field> |
6a488035 | 121 | </table> |