source: companies/serpro/calendar/setup/tables_current.inc.php @ 903

Revision 903, 4.8 KB checked in by niltonneto, 15 years ago (diff)

Importacao inicial do Expresso do Serpro

Line 
1<?php
2  /**************************************************************************\
3  * eGroupWare                                                               *
4  * http://www.egroupware.org                                                *
5  * --------------------------------------------                             *
6  *  This program is free software; you can redistribute it and/or modify it *
7  *  under the terms of the GNU General Public License as published by the   *
8  *  Free Software Foundation; either version 2 of the License, or (at your  *
9  *  option) any later version.                                              *
10  \**************************************************************************/
11
12
13        $phpgw_baseline = array(
14                'phpgw_cal' => array(
15                        'fd' => array(
16                                'cal_id' => array('type' => 'auto','nullable' => False),
17                                'uid' => array('type' => 'varchar','precision' => '255','nullable' => False),
18                                'owner' => array('type' => 'int','precision' => '8','nullable' => False),
19                                'category' => array('type' => 'varchar','precision' => '30','nullable' => True),
20                                'groups' => array('type' => 'varchar','precision' => '255','nullable' => True),
21                                'datetime' => array('type' => 'int','precision' => '8','nullable' => True),
22                                'mdatetime' => array('type' => 'int','precision' => '8','nullable' => True),
23                                'edatetime' => array('type' => 'int','precision' => '8','nullable' => True),
24                                'priority' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '2'),
25                                'cal_type' => array('type' => 'varchar','precision' => '10','nullable' => True),
26                                'is_public' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '1'),
27                                'title' => array('type' => 'varchar','precision' => '80','nullable' => False,'default' => '1'),
28                                'description' => array('type' => 'text','nullable' => True),
29                                'location' => array('type' => 'varchar','precision' => '255','nullable' => True),
30                                'reference' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'),
31                                'ex_participants' => array('type' => 'text','nullable' => True),
32                        ),
33                        'pk' => array('cal_id'),
34                        'fk' => array(),
35                        'ix' => array(),
36                        'uc' => array()
37                ),
38                'phpgw_cal_holidays' => array(
39                        'fd' => array(
40                                'hol_id' => array('type' => 'auto','nullable' => False),
41                                'locale' => array('type' => 'char','precision' => '2','nullable' => False),
42                                'name' => array('type' => 'varchar','precision' => '50','nullable' => False),
43                                'mday' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'),
44                                'month_num' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'),
45                                'occurence' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'),
46                                'dow' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'),
47                                'observance_rule' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0')
48                        ),
49                        'pk' => array('hol_id'),
50                        'fk' => array(),
51                        'ix' => array(),
52                        'uc' => array()
53                ),
54                'phpgw_cal_repeats' => array(
55                        'fd' => array(
56                                'cal_id' => array('type' => 'int','precision' => '8','nullable' => False),
57                                'recur_type' => array('type' => 'int','precision' => '8','nullable' => False),
58                                'recur_use_end' => array('type' => 'int','precision' => '8','nullable' => True,'default' => '0'),
59                                'recur_enddate' => array('type' => 'int','precision' => '8','nullable' => True),
60                                'recur_interval' => array('type' => 'int','precision' => '8','nullable' => True,'default' => '1'),
61                                'recur_data' => array('type' => 'int','precision' => '8','nullable' => True,'default' => '1'),
62                                'recur_exception' => array('type' => 'varchar','precision' => '255','nullable' => True,'default' => '')
63                        ),
64                        'pk' => array(),
65                        'fk' => array(),
66                        'ix' => array(),
67                        'uc' => array()
68                ),
69                'phpgw_cal_user' => array(
70                        'fd' => array(
71                                'cal_id' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'),
72                                'cal_login' => array('type' => 'int','precision' => '8','nullable' => False,'default' => '0'),
73                                'cal_status' => array('type' => 'char','precision' => '1','nullable' => True,'default' => 'A'),
74                                'cal_type' => array('type' => 'varchar','precision' => '1','nullable' => False,'default' => 'u')
75                        ),
76                        'pk' => array('cal_id','cal_login'),
77                        'fk' => array(),
78                        'ix' => array(),
79                        'uc' => array()
80                ),
81                'phpgw_cal_extra' => array(
82                        'fd' => array(
83                                'cal_id' => array('type' => 'int','precision' => '4','nullable' => False),
84                                'cal_extra_name' => array('type' => 'varchar','precision' => '40','nullable' => False),
85                                'cal_extra_value' => array('type' => 'varchar','precision' => '255','nullable' => False,'default' => '')
86                        ),
87                        'pk' => array('cal_id','cal_extra_name'),
88                        'fk' => array(),
89                        'ix' => array(),
90                        'uc' => array()
91                )
92        );
93?>
Note: See TracBrowser for help on using the repository browser.