source: trunk/expressoMail1_2/setup/tables_current.inc.php @ 6996

Revision 6996, 4.9 KB checked in by acoutinho, 12 years ago (diff)

Ticket #2966 - Merge de novas funcionalidades com trunk #2951, #2952

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2        /**************************************************************************\
3        * Expresso Administração                                                                                                                                 *
4        * by Joao Alfredo Knopik Junior (joao.alfredo@gmail.com, jakjr@celepar.pr.gov.br)        *
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        $phpgw_baseline = array(
12                'expressomail_dynamic_contact' => array(
13                        'fd' => array(
14                                'id' => array('type' => 'auto','nullable' => False),
15                                'owner' => array('type' => 'int','precision' => '16','nullable' => False),
16                                'name' => array('type' => 'varchar','precision' => '100','nullable' => true),
17                                'mail' => array('type' => 'varchar','precision' => '100','nullable' => False),
18                                'number_of_messages' => array('type' => 'int','precision' => '16','nullable' => False),
19                                'timestamp' => array('type' => 'int','precision' => '16','nullable' => False),
20                        ),
21                        'pk' => array('id'),
22                        'fk' => array(),
23                        'ix' => array(),
24                        'uc' => array()
25                ),
26               
27        'phpgw_certificados' => array(
28            'fd' => array(
29                'email' => array( 'type' => 'varchar', 'precision' => 60, 'nullable' => false),
30                'chave_publica' => array( 'type' => 'text'),
31                'expirado' => array('type' => 'bool', 'default' => 'false'),
32                'revogado' => array('type' => 'bool', 'default' => 'false'),
33                'serialnumber' => array('type' => 'int', 'precision' => 8, 'nullable' => false),
34                'authoritykeyidentifier' => array( 'type' => 'text', 'nullable' => false),
35            ),
36            'pk' => array('email','serialnumber','authoritykeyidentifier'),
37            'fk' => array(),
38            'ix' => array(),
39            'uc' => array()
40                ),
41               
42                'expressomail_label' => array(
43                        'fd' => array(
44                                'id' => array('type' => 'auto','nullable' => False),
45                                'user_id' => array('type' => 'int', 'precision' => '8','nullable' => true),
46                                'name' => array('type' => 'varchar','precision' => '255','nullable' => true),
47                                'border_color' => array('type' => 'varchar','precision' => '7','nullable' => true),
48                                'background_color' => array('type' => 'varchar','precision' => '7','nullable' => true),
49                                'font_color' => array('type' => 'varchar','precision' => '7','nullable' => true),
50                                'slot' => array('type' => 'int', 'precision' => '8', 'nullable' => False)
51                        ),
52                        'pk' => array('id'),
53                        'fk' => array(),
54                        'ix' => array(),
55                        'uc' => array()
56                ),
57
58                'expressomail_followupflag' => array(
59                        'fd' => array(
60                                'id' => array('type' => 'auto','nullable' => False),
61                                'user_id' => array('type' => 'int', 'precision' => '8','nullable' => true),
62                                'name' => array('type' => 'varchar','precision' => '255','nullable' => False)
63                        ),
64                        'pk' => array('id'),
65                        'fk' => array(),
66                        'ix' => array(),
67                        'uc' => array()
68                ),
69       
70                'expressomail_message_followupflag' => array(
71                        'fd' => array(
72                                'id' => array('type' => 'auto','nullable' => False),
73                                'followupflag_id' => array('type' => 'int', 'precision' => '8','nullable' => False),   
74                                'message_id' => array('type' => 'varchar', 'precision' => '100','nullable' => False),                           
75                                'border_color' => array('type' => 'varchar','precision' => '7','nullable' => true),
76                                'background_color' => array('type' => 'varchar','precision' => '7','nullable' => true),
77                                'font_color' => array('type' => 'varchar','precision' => '7','nullable' => true),
78                                'alarm_deadline' => array('type' => 'timestamp', 'nullable' => true),
79                                'done_deadline' => array('type' => 'timestamp', 'nullable' => true),
80                                'is_done' => array('type' => 'int', 'precision' => '2','nullable' => true),
81                                'sent' => array('type' => 'int', 'precision' => '2','nullable' => false, 'default' => 0)
82                        ),
83                        'pk' => array('id'),
84                        'fk' => array(),
85                        'ix' => array(),
86                        'uc' => array()
87               
88                ),
89       
90                'expressomail_attachment' => array(
91                        'fd' => array(
92                                'id' => array('type' => 'auto','nullable' => False),
93                                'source' => array('type' => 'blob','nullable' => False),
94                                'type' => array('type' => 'varchar','precision' => '255','nullable' => False),
95                                'name' => array('type' => 'varchar','precision' => '255','nullable' => False),
96                'disposition' => array('type' => 'varchar','precision' => '20','nullable' => true),
97                                'size' => array('type' => 'int','precision' => '16','nullable' => False),
98                'dtstamp' => array('type' => 'int','precision' => '16','nullable' => False),
99                                'owner' => array('type' => 'int', 'precision' => '8','nullable' => True),
100                               
101                        ),
102                        'pk' => array('id'),
103                        'fk' => array(),
104                        'ix' => array(),
105                        'uc' => array()
106                )
107        );
108?>
Note: See TracBrowser for help on using the repository browser.