Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Report</base> | |
0b25329b | 5 | <class>ReportInstance</class> |
6a488035 TO |
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 | 132 | <comment>comma-separated list of email addresses to send the report to</comment> |
7deea513 | 133 | <html> |
134 | <type>TextArea</type> | |
817807ab | 135 | <rows>4</rows> |
136 | <cols>60</cols> | |
7deea513 | 137 | </html> |
c798ac7a | 138 | <add>2.2</add> |
6a488035 | 139 | </field> |
c798ac7a | 140 | <field> |
141 | <name>footer</name> | |
142 | <title>Report Instance Footer</title> | |
143 | <type>text</type> | |
6a488035 | 144 | <comment>comma-separated list of email addresses to send the report to</comment> |
7deea513 | 145 | <html> |
146 | <type>TextArea</type> | |
817807ab | 147 | <rows>4</rows> |
148 | <cols>60</cols> | |
7deea513 | 149 | </html> |
c798ac7a | 150 | <add>2.2</add> |
6a488035 | 151 | </field> |
c798ac7a | 152 | <field> |
153 | <name>navigation_id</name> | |
6a488035 | 154 | <title>Navigation ID</title> |
c798ac7a | 155 | <type>int unsigned</type> |
6a488035 | 156 | <import>true</import> |
c798ac7a | 157 | <comment>FK to navigation ID</comment> |
158 | <add>3.0</add> | |
159 | </field> | |
160 | <foreignKey> | |
161 | <name>navigation_id</name> | |
6a488035 | 162 | <table>civicrm_navigation</table> |
c798ac7a | 163 | <key>id</key> |
164 | <add>3.0</add> | |
6a488035 | 165 | <onDelete>SET NULL</onDelete> |
c798ac7a | 166 | </foreignKey> |
167 | <field> | |
168 | <name>drilldown_id</name> | |
6a488035 | 169 | <title>Drilldown Report ID</title> |
c798ac7a | 170 | <type>int unsigned</type> |
6a488035 | 171 | <import>true</import> |
c798ac7a | 172 | <comment>FK to instance ID drilldown to</comment> |
173 | <add>4.3</add> | |
174 | </field> | |
175 | <foreignKey> | |
176 | <name>drilldown_id</name> | |
6a488035 | 177 | <table>civicrm_report_instance</table> |
c798ac7a | 178 | <key>id</key> |
179 | <add>4.3</add> | |
6a488035 | 180 | <onDelete>SET NULL</onDelete> |
c798ac7a | 181 | </foreignKey> |
6a488035 TO |
182 | <field> |
183 | <name>is_reserved</name> | |
c798ac7a | 184 | <title>Instance is Reserved</title> |
6a488035 TO |
185 | <type>boolean</type> |
186 | <default>0</default> | |
187 | <add>4.2</add> | |
188 | </field> | |
189 | </table> |