source: contrib/Dms/setup/tables_current.inc.php @ 3526

Revision 3526, 8.9 KB checked in by afernandes, 13 years ago (diff)

Ticket #1416 - Disponibilizado modulos Timesheet e DMS para a comunidade.

  • Property svn:executable set to *
Line 
1<?php
2        /**************************************************************************\
3        * eGroupWare - mydms                                                       *
4        * http://www.egroupware.org                                                *
5        * This application is ported from Mydms                                    *
6        *        by Lian Liming <dawnlinux@realss.com>                             *
7        * --------------------------------------------                             *
8        *  This program is free software; you can redistribute it and/or modify it *
9        *  under the terms of the GNU General Public License as published by the   *
10        *  Free Software Foundation; either version 2 of the License, or (at your  *
11        *  option) any later version.                                              *
12        \**************************************************************************/
13        /* $Id: tables_current.inc.php 19890 2005-11-19 20:57:10Z ralfbecker $ */
14
15        $phpgw_baseline = array(
16                'phpgw_mydms_ACLs' => array(
17                        'fd' => array(
18                                'id' => array('type' => 'auto', 'nullable' => False),
19                                'target' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'),
20                                'targetType' => array('type' => 'int', 'precision' => '2', 'nullable' => False ,'default' => '0'),
21                                'userID' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '-1'),
22                                'groupID' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '-1'),
23                                'mode' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '0')
24                        ),
25                        'pk' => array('id'),
26                        'fk' => array(),
27                        'ix' => array(),
28                        'uc' => array()
29                ),
30
31                'phpgw_mydms_DocumentContent' => array(
32                        'fd' => array(
33                                'id' => array('type' => 'auto', 'nullable' => False),
34                                'document' => array('type' => 'int', 'precision' => '4', 'default' => 'NULL'),
35                                'version'  => array('type' => 'int', 'precision' => '2', 'default' => 'NULL'),
36                                'comment'  => array('type' => 'text'),
37                                'date'     => array('type' => 'int', 'precision' => '8', 'default' => 'NULL'),
38                                'createdBy' => array('type' => 'int', 'precision' => '4', 'default' => 'NULL'),
39                                'dir'      => array('type' => 'varchar', 'precision' => '10','default' => ' ','nullable' => False),
40                                'orgFileName' => array('type' => 'varchar', 'precision' => '150', 'default' => ' ', 'nullable' => False),
41                                'fileType' => array('type' => 'varchar', 'precision' => '10', 'default' => ' ', 'nullable' => False),
42                                'mimeType' => array('type' => 'varchar', 'precision' => '70', 'default' => ' ', 'nullable' => False)
43                        ),
44                        'pk' => array('id'),
45                        'fk' => array(),
46                        'ix' => array(),
47                        'uc' => array()
48                ),
49
50                'phpgw_mydms_Documents' => array(
51                        'fd' => array(
52                                'id' => array('type' => 'auto', 'nullable' => False),
53                                'name' => array('type' => 'varchar', 'precision' => '150', 'default' => 'NULL'),
54                                'comment' => array('type' => 'text'),
55                                'date' => array('type' => 'int', 'precision' => '8', 'default' => 'NULL'),
56                                'expires' => array('type' => 'int', 'precision' => '8', 'default' => 'NULL'),
57                                'owner' => array('type' => 'int', 'precision' => '4', 'default' => 'NULL'),
58                                'folder' => array('type' => 'int', 'precision' => '4', 'default' => 'NULL'),
59                                'inheritAccess' => array('type' => 'bool', 'nullable' => False, 'default' => 'true'),
60                                'defaultAccess' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '0'),
61                                'locked' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '-1'),
62                                'keywords' => array('type' => 'text', 'nullable' => False),
63                                'sequence' => array('type' => 'float', 'precision' => '8', 'nullable' => False, 'default' => '0')
64                        ),
65                        'pk' => array('id'),
66                        'fk' => array(),
67                        'ix' => array(),
68                        'uc' => array()
69        ),
70
71        'phpgw_mydms_Folders' => array(
72                'fd' => array(
73                        'id' => array('type' => 'auto', 'nullable' => False),
74                        'name' => array('type' => 'varchar', 'precision' => '90', 'default' => 'NULL'),
75                        'parent' => array('type' => 'int', 'precision' => '4', 'default' => 'NULL'),
76                        'comment' => array('type' => 'text'),
77                        'owner' => array('type' => 'int', 'precision' => '4', 'default' => 'NULL'),
78                        'inheritAccess' => array('type' => 'bool', 'nullable' => False, 'default' => 'true'),
79                        'defaultAccess' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '0'),
80                        'sequence' => array('type' => 'float', 'precision' => '8', 'nullable' => False, 'default' => '0')
81                ),
82                'pk' => array('id'),
83                'fk' => array(),
84                'ix' => array(),
85                'uc' => array()
86        ),
87
88
89        'phpgw_mydms_GroupMembers' => array(
90                'fd' => array(
91                        'id' => array('type' => 'auto', 'nullable' => False),
92                        'groupID' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'),
93                        'userID' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0')
94                ),
95                'pk' => array('id'),
96                'fk' => array(),
97                'ix' => array(),
98                'uc' => array()
99        ),
100               
101        'phpgw_mydms_Groups' => array(
102                'fd' => array(
103                'id' => array('type' => 'auto', 'nullable' => False),
104                        'name' => array('type' => 'varchar', 'precision' => '50', 'default' => 'NULL'),
105                        'comment' => array('type' => 'text', 'nullable' => 'NULL')
106                ),
107                'pk' => array('id'),
108                'fk' => array(),
109                'ix' => array(),
110                'uc' => array()
111        ),
112
113        'phpgw_mydms_Notify' => array(
114                'fd' => array(
115                        'id' => array('type' => 'auto', 'nullable' => False),
116                        'target' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'),
117                        'targetType' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'),
118                        'userID' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '-1'),
119                        'groupID' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '-1')
120                ),
121                'pk' => array('id'),
122                'fk' => array(),
123                'ix' => array(),
124                'uc' => array()
125        ),
126
127        'phpgw_mydms_DocumentLinks' => array(
128                'fd' => array(
129                        'id' => array('type' => 'auto', 'nullable' => False),
130                        'document' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'),
131                        'target' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'),
132                        'userID' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'),
133                        'public' => array('type' => 'bool', 'nullable' => False, 'default' => 'false')
134                ),
135                'pk' => array('id'),
136                'fk' => array(),
137                'ix' => array(),
138                'uc' => array()
139        ),
140
141        'phpgw_mydms_Sessions' => array(
142                'fd' => array(
143                        'id' => array('type' => 'char','precision' => '50', 'nullable' => False, 'default' => ''),
144                        'userID' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'),
145                        'lastAccess' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'),
146                        'theme' => array('type' => 'varchar', 'precision' => '30', 'nullable' => False, 'default' => ''),
147                        'language' => array('type' => 'varchar', 'precision' => '30', 'nullable' => False, 'default' => '')
148                ),
149                'pk' => array('id'),
150                'fk' => array(),
151                'ix' => array(),
152                'uc' => array()
153        ),
154
155        'phpgw_mydms_UserImages' => array(
156                'fd' => array(
157                        'id' => array('type' => 'auto', 'nullable' => False),
158                        'userID' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'),
159                        'image' => array('type' => 'blob', 'nullable' => False),       
160                        'mimeType' => array('type' => 'varchar', 'precision' => '10', 'nullable' => False, 'default' => '')               
161                ),
162                'pk' => array('id'),
163                'fk' => array(),
164                'ix' => array(),
165                'uc' => array()
166        ),
167
168        'phpgw_mydms_Users' => array(
169                'fd' => array(
170                        'id' => array('type' => 'auto', 'nullable' => False),
171                        'login' => array('type' => 'varchar', 'precision' => '50', 'default' => 'NULL'),
172                        'pwd' => array('type' => 'varchar', 'precision' => '50', 'default' => 'NULL'),
173                        'fullName' => array('type' => 'varchar', 'precision' => '100', 'default' => 'NULL'),
174                        'email' => array('type' => 'varchar', 'precision' => '70', 'default' => 'NULL'),
175                        'comment' => array('type' => 'text', 'nullable' => False),
176                        'isAdmin' => array('type' => 'int', 'precision' => '2', 'nullable' => False, 'default' => '0')           
177                ),
178                'pk' => array('id'),
179                'fk' => array(),
180                'ix' => array(),
181                'uc' => array()
182        ),
183
184        'phpgw_mydms_KeywordCategories' => array(
185                'fd' => array(
186                        'id' => array('type' => 'auto', 'nullable' => False),
187                        'name' => array('type' => 'varchar', 'precision' => '255', 'nullable' => False, 'default' => ''),
188                        'owner' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0')
189                ),
190                'pk' => array('id'),
191                'fk' => array(),
192                'ix' => array(),
193                'uc' => array()
194        ),
195
196        'phpgw_mydms_Keywords' => array(
197                'fd' => array(
198                        'id' => array('type' => 'auto', 'nullable' => False),
199                        'category' => array('type' => 'int', 'precision' => '4', 'nullable' => False, 'default' => '0'),
200                        'keywords' => array('type' => 'text', 'nullable' => False)
201                ),
202                'pk' => array('id'),
203                'fk' => array(),
204                'ix' => array(),
205                'uc' => array()
206        )
207        );
208?>
Note: See TracBrowser for help on using the repository browser.