Import from SVN (r45945, r596)
[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>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Report Instance ID</comment>
14 <add>2.2</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>false</autoincrement>
19 </primaryKey>
20 <field>
21 <name>domain_id</name>
22 <type>int unsigned</type>
23 <required>true</required>
24 <comment>Which Domain is this instance for</comment>
25 <add>3.1</add>
26 </field>
27 <foreignKey>
28 <name>domain_id</name>
29 <table>civicrm_domain</table>
30 <key>id</key>
31 <add>3.1</add>
32 </foreignKey>
33 <field>
34 <name>title</name>
35 <title>Report Instance Title</title>
36 <type>varchar</type>
37 <length>255</length>
38 <comment>Report Instance Title.</comment>
39 <add>2.2</add>
40 </field>
41 <field>
42 <name>report_id</name>
43 <type>varchar</type>
44 <length>64</length>
45 <required>true</required>
46 <comment>FK to civicrm_option_value for the report template</comment>
47 <add>2.2</add>
48 </field>
49 <field>
50 <name>name</name>
51 <type>varchar</type>
52 <length>255</length>
53 <comment>when combined with report_id/template uniquely identifies the instance</comment>
54 <add>3.2</add>
55 </field>
56 <field>
57 <name>args</name>
58 <type>varchar</type>
59 <length>255</length>
60 <comment>arguments that are passed in the url when invoking the instance</comment>
61 <add>3.2</add>
62 </field>
63 <field>
64 <name>description</name>
65 <type>varchar</type>
66 <length>255</length>
67 <comment>Report Instance description.</comment>
68 <add>2.2</add>
69 </field>
70 <field>
71 <name>permission</name>
72 <type>varchar</type>
73 <length>255</length>
74 <comment>permission required to be able to run this instance</comment>
75 <add>2.2</add>
76 </field>
77 <field>
78 <name>grouprole</name>
79 <type>varchar</type>
80 <length>1024</length>
81 <comment>role required to be able to run this instance</comment>
82 <add>4.1</add>
83 </field>
84 <field>
85 <name>form_values</name>
86 <title>Submitted Form Values</title>
87 <type>text</type>
88 <import>true</import>
89 <comment>Submitted form values for this report</comment>
90 <add>2.2</add>
91 </field>
92 <field>
93 <name>is_active</name>
94 <type>boolean</type>
95 <comment>Is this entry active?</comment>
96 <add>2.2</add>
97 </field>
98 <field>
99 <name>email_subject</name>
100 <type>varchar</type>
101 <length>255</length>
102 <comment>Subject of email</comment>
103 </field>
104 <field>
105 <name>email_to</name>
106 <type>text</type>
107 <comment>comma-separated list of email addresses to send the report to</comment>
108 <add>2.2</add>
109 </field>
110 <field>
111 <name>email_cc</name>
112 <type>text</type>
113 <comment>comma-separated list of email addresses to send the report to</comment>
114 <add>2.2</add>
115 </field>
116 <field>
117 <name>header</name>
118 <type>text</type>
119 <comment>comma-separated list of email addresses to send the report to</comment>
120 <htmlType>textarea</htmlType>
121 <rows>4</rows>
122 <cols>60</cols>
123 <add>2.2</add>
124 </field>
125 <field>
126 <name>footer</name>
127 <type>text</type>
128 <comment>comma-separated list of email addresses to send the report to</comment>
129 <htmlType>textarea</htmlType>
130 <rows>4</rows>
131 <cols>60</cols>
132 <add>2.2</add>
133 </field>
134 <field>
135 <name>navigation_id</name>
136 <title>Navigation ID</title>
137 <type>int unsigned</type>
138 <import>true</import>
139 <comment>FK to navigation ID</comment>
140 <add>3.0</add>
141 </field>
142 <foreignKey>
143 <name>navigation_id</name>
144 <table>civicrm_navigation</table>
145 <key>id</key>
146 <add>3.0</add>
147 <onDelete>SET NULL</onDelete>
148 </foreignKey>
149 <field>
150 <name>drilldown_id</name>
151 <title>Drilldown Report ID</title>
152 <type>int unsigned</type>
153 <import>true</import>
154 <comment>FK to instance ID drilldown to</comment>
155 <add>4.3</add>
156 </field>
157 <foreignKey>
158 <name>drilldown_id</name>
159 <table>civicrm_report_instance</table>
160 <key>id</key>
161 <add>4.3</add>
162 <onDelete>SET NULL</onDelete>
163 </foreignKey>
164 <field>
165 <name>is_reserved</name>
166 <type>boolean</type>
167 <default>0</default>
168 <add>4.2</add>
169 </field>
170</table>