Introduce 'context' param to CRM.api CRM-12029
[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>
5 <class>MessageTemplates</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 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Message Template ID</comment>
14 <add>1.6</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>msg_title</name>
22 <type>varchar</type>
23 <length>255</length>
24 <comment>Descriptive title of message</comment>
25 <add>1.6</add>
26 </field>
27 <field>
28 <name>msg_subject</name>
29 <type>text</type>
30 <comment>Subject for email message.</comment>
31 <add>1.6</add>
32 <!-- type changed from VARCHAR(255) to TEXT in 3.1 -->
33 </field>
34 <field>
35 <name>msg_text</name>
36 <type>longtext</type>
37 <rows>10</rows>
38 <cols>75</cols>
39 <comment>Text formatted message</comment>
40 <add>1.6</add>
41 <!-- type changed from TEXT to LONGTEXT in 4.3 -->
42 </field>
43 <field>
44 <name>msg_html</name>
45 <type>longtext</type>
46 <rows>10</rows>
47 <cols>75</cols>
48 <comment>HTML formatted message</comment>
49 <add>1.6</add>
50 <!-- type changed from TEXT to LONGTEXT in 4.3 -->
51 </field>
52 <field>
53 <name>is_active</name>
54 <title>Is Active</title>
55 <type>boolean</type>
56 <default>1</default>
57 <add>1.6</add>
58 </field>
59 <field>
60 <name>workflow_id</name>
61 <type>int unsigned</type>
62 <comment>a pseudo-FK to civicrm_option_value</comment>
63 <add>3.1</add>
64 </field>
65 <field>
66 <name>is_default</name>
67 <type>boolean</type>
68 <default>1</default>
69 <comment>is this the default message template for the workflow referenced by workflow_id?</comment>
70 <add>3.1</add>
71 </field>
72 <field>
73 <name>is_reserved</name>
74 <type>boolean</type>
75 <comment>is this the reserved message template which we ship for the workflow referenced by workflow_id?</comment>
76 <add>3.1</add>
77 </field>
78 <field>
79 <name>pdf_format_id</name>
80 <type>int unsigned</type>
81 <comment>FK to civicrm_option_value containing PDF Page Format.</comment>
82 <add>3.4</add>
83 </field>
84 <foreignKey>
85 <name>pdf_format_id</name>
86 <table>civicrm_option_value</table>
87 <key>id</key>
88 <onDelete>SET NULL</onDelete>
89 <add>3.4</add>
90 </foreignKey>
91</table>