Merge pull request #4004 from civicrm/4.4
[civicrm-core.git] / xml / schema / Contact / DashboardContact.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Contact</base>
5 <class>DashboardContact</class>
6 <name>civicrm_dashboard_contact</name>
7 <comment>Table to store dashboard for each contact.</comment>
8 <add>3.1</add>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <title>Dashboard Contact ID</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>dashboard_id</name>
22 <type>int unsigned</type>
23 <title>Dashboard</title>
24 <required>true</required>
25 <comment>Dashboard ID</comment>
26 <add>3.1</add>
27 </field>
28 <foreignKey>
29 <name>dashboard_id</name>
30 <table>civicrm_dashboard</table>
31 <key>id</key>
32 <onDelete>CASCADE</onDelete>
33 <add>3.1</add>
34 </foreignKey>
35 <field>
36 <name>contact_id</name>
37 <type>int unsigned</type>
38 <title>Dashboard Contact</title>
39 <required>true</required>
40 <comment>Contact ID</comment>
41 <add>3.1</add>
42 </field>
43 <foreignKey>
44 <name>contact_id</name>
45 <table>civicrm_contact</table>
46 <key>id</key>
47 <onDelete>CASCADE</onDelete>
48 <add>3.1</add>
49 </foreignKey>
50 <field>
51 <name>column_no</name>
52 <type>boolean</type>
53 <comment>column no for this widget</comment>
54 <default>0</default>
55 <add>3.1</add>
56 </field>
57 <field>
58 <name>is_minimized</name>
59 <type>boolean</type>
60 <title>Dashlet is Minimized?</title>
61 <comment>Is Minimized?</comment>
62 <default>0</default>
63 <add>3.1</add>
64 </field>
65 <field>
66 <name>is_fullscreen</name>
67 <type>boolean</type>
68 <title>Dashlet is FullScreen?</title>
69 <comment>Is Fullscreen?</comment>
70 <default>1</default>
71 <add>3.1</add>
72 </field>
73 <field>
74 <name>is_active</name>
75 <type>boolean</type>
76 <title>Dashlet is Active?</title>
77 <comment>Is this widget active?</comment>
78 <default>0</default>
79 <add>3.1</add>
80 </field>
81 <field>
82 <name>weight</name>
83 <type>int</type>
84 <comment>Ordering of the widgets.</comment>
85 <default>0</default>
86 <add>3.1</add>
87 </field>
88 <field>
89 <name>content</name>
90 <type>longtext</type>
91 <comment>dashlet content</comment>
92 <add>3.3</add>
93 </field>
94 <field>
95 <name>created_date</name>
96 <type>datetime</type>
97 <title>Dashlet Created On</title>
98 <comment>When was content populated</comment>
99 <add>3.3</add>
100 </field>
101 </table>