CRM-12877, fixed save-a-copy bug
[civicrm-core.git] / xml / schema / Report / Instance.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Report</base>
5 <class>Instance</class>
6 <name>civicrm_report_instance</name>
7 <comment>Users can save their report instance and put in a cron tab etc.</comment>
8 <add>2.2</add>
9 <field>
10 <name>id</name>
c798ac7a 11 <title>Report Instance ID</title>
6a488035
TO
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Report Instance ID</comment>
15 <add>2.2</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>false</autoincrement>
20 </primaryKey>
21 <field>
22 <name>domain_id</name>
c798ac7a 23 <title>Report Instance Domain ID</title>
6a488035
TO
24 <type>int unsigned</type>
25 <required>true</required>
26 <comment>Which Domain is this instance for</comment>
27 <add>3.1</add>
28 </field>
29 <foreignKey>
30 <name>domain_id</name>
31 <table>civicrm_domain</table>
32 <key>id</key>
33 <add>3.1</add>
34 </foreignKey>
35 <field>
36 <name>title</name>
37 <title>Report Instance Title</title>
38 <type>varchar</type>
39 <length>255</length>
40 <comment>Report Instance Title.</comment>
41 <add>2.2</add>
42 </field>
43 <field>
44 <name>report_id</name>
c798ac7a 45 <title>Report template ID</title>
6a488035
TO
46 <type>varchar</type>
47 <length>64</length>
48 <required>true</required>
49 <comment>FK to civicrm_option_value for the report template</comment>
50 <add>2.2</add>
51 </field>
52 <field>
53 <name>name</name>
c798ac7a 54 <title>Report instance Name</title>
6a488035
TO
55 <type>varchar</type>
56 <length>255</length>
57 <comment>when combined with report_id/template uniquely identifies the instance</comment>
58 <add>3.2</add>
59 </field>
60 <field>
61 <name>args</name>
c798ac7a 62 <title>Report Instance Arguments</title>
6a488035
TO
63 <type>varchar</type>
64 <length>255</length>
65 <comment>arguments that are passed in the url when invoking the instance</comment>
66 <add>3.2</add>
67 </field>
68 <field>
69 <name>description</name>
c798ac7a 70 <title>Report Instance description</title>
6a488035
TO
71 <type>varchar</type>
72 <length>255</length>
73 <comment>Report Instance description.</comment>
74 <add>2.2</add>
75 </field>
76 <field>
77 <name>permission</name>
c798ac7a 78 <title>Report Instance Permissions</title>
6a488035
TO
79 <type>varchar</type>
80 <length>255</length>
81 <comment>permission required to be able to run this instance</comment>
82 <add>2.2</add>
83 </field>
84 <field>
85 <name>grouprole</name>
c798ac7a 86 <title>Report Instance Assigned to Roles</title>
6a488035
TO
87 <type>varchar</type>
88 <length>1024</length>
89 <comment>role required to be able to run this instance</comment>
90 <add>4.1</add>
91 </field>
92 <field>
93 <name>form_values</name>
94 <title>Submitted Form Values</title>
95 <type>text</type>
96 <import>true</import>
97 <comment>Submitted form values for this report</comment>
98 <add>2.2</add>
99 </field>
100 <field>
101 <name>is_active</name>
c798ac7a 102 <title>Report Instance is Active</title>
6a488035
TO
103 <type>boolean</type>
104 <comment>Is this entry active?</comment>
105 <add>2.2</add>
106 </field>
107 <field>
108 <name>email_subject</name>
c798ac7a 109 <title>Report Instance email Subject</title>
6a488035
TO
110 <type>varchar</type>
111 <length>255</length>
112 <comment>Subject of email</comment>
113 </field>
c798ac7a 114 <field>
115 <name>email_to</name>
116 <title>Email Report Instance To</title>
117 <type>text</type>
6a488035 118 <comment>comma-separated list of email addresses to send the report to</comment>
c798ac7a 119 <add>2.2</add>
6a488035 120 </field>
c798ac7a 121 <field>
122 <name>email_cc</name>
123 <title>cc Email Report Instance To</title>
124 <type>text</type>
6a488035 125 <comment>comma-separated list of email addresses to send the report to</comment>
c798ac7a 126 <add>2.2</add>
6a488035 127 </field>
c798ac7a 128 <field>
129 <name>header</name>
130 <title>Report Instance Header</title>
131 <type>text</type>
6a488035
TO
132 <comment>comma-separated list of email addresses to send the report to</comment>
133 <htmlType>textarea</htmlType>
134 <rows>4</rows>
135 <cols>60</cols>
c798ac7a 136 <add>2.2</add>
6a488035 137 </field>
c798ac7a 138 <field>
139 <name>footer</name>
140 <title>Report Instance Footer</title>
141 <type>text</type>
6a488035
TO
142 <comment>comma-separated list of email addresses to send the report to</comment>
143 <htmlType>textarea</htmlType>
144 <rows>4</rows>
145 <cols>60</cols>
c798ac7a 146 <add>2.2</add>
6a488035 147 </field>
c798ac7a 148 <field>
149 <name>navigation_id</name>
6a488035 150 <title>Navigation ID</title>
c798ac7a 151 <type>int unsigned</type>
6a488035 152 <import>true</import>
c798ac7a 153 <comment>FK to navigation ID</comment>
154 <add>3.0</add>
155 </field>
156 <foreignKey>
157 <name>navigation_id</name>
6a488035 158 <table>civicrm_navigation</table>
c798ac7a 159 <key>id</key>
160 <add>3.0</add>
6a488035 161 <onDelete>SET NULL</onDelete>
c798ac7a 162 </foreignKey>
163 <field>
164 <name>drilldown_id</name>
6a488035 165 <title>Drilldown Report ID</title>
c798ac7a 166 <type>int unsigned</type>
6a488035 167 <import>true</import>
c798ac7a 168 <comment>FK to instance ID drilldown to</comment>
169 <add>4.3</add>
170 </field>
171 <foreignKey>
172 <name>drilldown_id</name>
6a488035 173 <table>civicrm_report_instance</table>
c798ac7a 174 <key>id</key>
175 <add>4.3</add>
6a488035 176 <onDelete>SET NULL</onDelete>
c798ac7a 177 </foreignKey>
6a488035
TO
178 <field>
179 <name>is_reserved</name>
c798ac7a 180 <title>Instance is Reserved</title>
6a488035
TO
181 <type>boolean</type>
182 <default>0</default>
183 <add>4.2</add>
184 </field>
185</table>