Merge pull request #18794 from eileenmcnaughton/need_less
[civicrm-core.git] / xml / schema / Core / Dashboard.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>Dashboard</class>
6 <name>civicrm_dashboard</name>
7 <comment>Table to store dashboard.</comment>
8 <add>3.1</add>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <title>DashletID</title>
13 <required>true</required>
14 <add>3.1</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>domain_id</name>
22 <type>int unsigned</type>
23 <title>Dashlet Domain</title>
24 <required>true</required>
25 <pseudoconstant>
26 <table>civicrm_domain</table>
27 <keyColumn>id</keyColumn>
28 <labelColumn>name</labelColumn>
29 </pseudoconstant>
30 <comment>Domain for dashboard</comment>
31 <add>3.1</add>
32 </field>
33 <foreignKey>
34 <name>domain_id</name>
35 <table>civicrm_domain</table>
36 <key>id</key>
37 <add>3.1</add>
38 <onDelete>CASCADE</onDelete>
39 </foreignKey>
40 <field>
41 <name>name</name>
42 <type>varchar</type>
43 <title>Dashlet Name</title>
44 <length>64</length>
45 <comment>Internal name of dashlet.</comment>
46 <add>4.4</add>
47 </field>
48 <field>
49 <name>label</name>
50 <type>varchar</type>
51 <title>Dashlet Title</title>
52 <length>255</length>
53 <comment>dashlet title</comment>
54 <localizable>true</localizable>
55 <add>3.1</add>
56 </field>
57 <field>
58 <name>url</name>
59 <type>varchar</type>
60 <title>Dashlet URL</title>
61 <length>255</length>
62 <comment>url in case of external dashlet</comment>
63 <add>3.1</add>
64 </field>
65 <field>
66 <name>permission</name>
67 <type>varchar</type>
68 <title>Dashlet Permission</title>
69 <length>255</length>
70 <comment>Permission for the dashlet</comment>
71 <add>3.1</add>
72 <serialize>COMMA</serialize>
73 </field>
74 <field>
75 <name>permission_operator</name>
76 <type>varchar</type>
77 <title>Dashlet Permission Operator</title>
78 <length>3</length>
79 <comment>Permission Operator</comment>
80 <add>3.1</add>
81 </field>
82 <field>
83 <name>column_no</name>
84 <type>boolean</type>
85 <title>Dashlet Column</title>
86 <comment>column no for this dashlet</comment>
87 <default>0</default>
88 <add>3.1</add>
89 <drop>4.7</drop>
90 </field>
91 <field>
92 <name>is_minimized</name>
93 <type>boolean</type>
94 <title>Minimize Dashlet?</title>
95 <comment>Is Minimized?</comment>
96 <default>0</default>
97 <add>3.1</add>
98 <drop>4.7</drop>
99 </field>
100 <field>
101 <name>fullscreen_url</name>
102 <type>varchar</type>
103 <title>Fullscreen URL</title>
104 <length>255</length>
105 <comment>fullscreen url for dashlet</comment>
106 <add>3.4</add>
107 </field>
108 <field>
109 <name>is_fullscreen</name>
110 <type>boolean</type>
111 <title>Is Fullscreen?</title>
112 <comment>Is Fullscreen?</comment>
113 <default>1</default>
114 <add>3.1</add>
115 <drop>4.7</drop>
116 </field>
117 <field>
118 <name>is_active</name>
119 <type>boolean</type>
120 <title>Is Dashlet Active?</title>
121 <comment>Is this dashlet active?</comment>
122 <default>0</default>
123 <add>3.1</add>
124 </field>
125 <field>
126 <name>is_reserved</name>
127 <type>boolean</type>
128 <title>Is Dashlet Reserved?</title>
129 <comment>Is this dashlet reserved?</comment>
130 <default>0</default>
131 <add>3.1</add>
132 </field>
133 <field>
134 <name>weight</name>
135 <type>int</type>
136 <title>Order</title>
137 <comment>Ordering of the dashlets.</comment>
138 <default>0</default>
139 <add>3.1</add>
140 <drop>4.7</drop>
141 </field>
142 <field>
143 <name>cache_minutes</name>
144 <type>int unsigned</type>
145 <title>Cache Minutes</title>
146 <comment>Number of minutes to cache dashlet content in browser localStorage.</comment>
147 <default>60</default>
148 <required>true</required>
149 <add>4.7</add>
150 </field>
151 <field>
152 <name>directive</name>
153 <type>varchar</type>
154 <title>Angular directive</title>
155 <length>255</length>
156 <comment>Element name of angular directive to invoke (lowercase hyphenated format)</comment>
157 <add>5.33</add>
158 </field>
159 </table>