Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 128 lines (107 sloc) 3.801 kB
4e17e6c @thomascube Initial revision
thomascube authored
1 -- RoundCube Webmail initial database structure
aade7b9 @thomascube Finalized 0.1beta2 release
thomascube authored
2 -- Version 0.1beta2
4e17e6c @thomascube Initial revision
thomascube authored
3 --
4
5 -- --------------------------------------------------------
6
7 --
8 -- Table structure for table `cache`
9 --
10
11 CREATE TABLE `cache` (
12 `cache_id` int(10) unsigned NOT NULL auto_increment,
13 `user_id` int(10) unsigned NOT NULL default '0',
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
14 `session_id` varchar(40) default NULL,
4e17e6c @thomascube Initial revision
thomascube authored
15 `cache_key` varchar(128) NOT NULL default '',
16 `created` datetime NOT NULL default '0000-00-00 00:00:00',
17 `data` longtext NOT NULL,
18 PRIMARY KEY (`cache_id`),
19 KEY `user_id` (`user_id`),
20 KEY `cache_key` (`cache_key`),
21 KEY `session_id` (`session_id`)
535da27 @thomascube Updated installation instructions
thomascube authored
22 );
4e17e6c @thomascube Initial revision
thomascube authored
23
24 -- --------------------------------------------------------
25
26 --
27 -- Table structure for table `contacts`
28 --
29
30 CREATE TABLE `contacts` (
31 `contact_id` int(10) unsigned NOT NULL auto_increment,
32 `user_id` int(10) unsigned NOT NULL default '0',
e447cb0 @thomascube Added 'changed' col to contacts table and support for 160-bit session…
thomascube authored
33 `changed` datetime NOT NULL default '0000-00-00 00:00:00',
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
34 `del` tinyint(1) NOT NULL default '0',
4e17e6c @thomascube Initial revision
thomascube authored
35 `name` varchar(128) NOT NULL default '',
36 `email` varchar(128) NOT NULL default '',
37 `firstname` varchar(128) NOT NULL default '',
38 `surname` varchar(128) NOT NULL default '',
39 `vcard` text NOT NULL,
40 PRIMARY KEY (`contact_id`),
41 KEY `user_id` (`user_id`)
535da27 @thomascube Updated installation instructions
thomascube authored
42 );
4e17e6c @thomascube Initial revision
thomascube authored
43
44 -- --------------------------------------------------------
45
46 --
47 -- Table structure for table `identities`
48 --
49
50 CREATE TABLE `identities` (
51 `identity_id` int(10) unsigned NOT NULL auto_increment,
52 `user_id` int(10) unsigned NOT NULL default '0',
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
53 `del` tinyint(1) NOT NULL default '0',
54 `standard` tinyint(1) NOT NULL default '0',
4e17e6c @thomascube Initial revision
thomascube authored
55 `name` varchar(128) NOT NULL default '',
56 `organization` varchar(128) NOT NULL default '',
57 `email` varchar(128) NOT NULL default '',
58 `reply-to` varchar(128) NOT NULL default '',
59 `bcc` varchar(128) NOT NULL default '',
60 `signature` text NOT NULL,
61 PRIMARY KEY (`identity_id`),
62 KEY `user_id` (`user_id`)
535da27 @thomascube Updated installation instructions
thomascube authored
63 );
4e17e6c @thomascube Initial revision
thomascube authored
64
65 -- --------------------------------------------------------
66
67 --
68 -- Table structure for table `session`
69 --
70
71 CREATE TABLE `session` (
e0ddd4e @thomascube Added 'changed' col to contacts table and support for 160-bit session…
thomascube authored
72 `sess_id` varchar(40) NOT NULL default '',
4e17e6c @thomascube Initial revision
thomascube authored
73 `created` datetime NOT NULL default '0000-00-00 00:00:00',
74 `changed` datetime NOT NULL default '0000-00-00 00:00:00',
42b1135 @thomascube Several bugfixes and feature improvements
thomascube authored
75 `ip` VARCHAR(15) NOT NULL default '',
4e17e6c @thomascube Initial revision
thomascube authored
76 `vars` text NOT NULL,
77 PRIMARY KEY (`sess_id`)
535da27 @thomascube Updated installation instructions
thomascube authored
78 );
4e17e6c @thomascube Initial revision
thomascube authored
79
80 -- --------------------------------------------------------
81
82 --
83 -- Table structure for table `users`
84 --
85
86 CREATE TABLE `users` (
87 `user_id` int(10) unsigned NOT NULL auto_increment,
88 `username` varchar(128) NOT NULL default '',
42b1135 @thomascube Several bugfixes and feature improvements
thomascube authored
89 `mail_host` varchar(128) NOT NULL default '',
90 `alias` varchar(128) NOT NULL default '',
4e17e6c @thomascube Initial revision
thomascube authored
91 `created` datetime NOT NULL default '0000-00-00 00:00:00',
92 `last_login` datetime NOT NULL default '0000-00-00 00:00:00',
93 `language` varchar(5) NOT NULL default 'en',
15a9d1c @thomascube Optimized loading time; added periodic mail check; added EXPUNGE command
thomascube authored
94 `preferences` text NOT NULL default '',
4e17e6c @thomascube Initial revision
thomascube authored
95 PRIMARY KEY (`user_id`)
535da27 @thomascube Updated installation instructions
thomascube authored
96 );
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
97
98 -- --------------------------------------------------------
99
100 --
101 -- Table structure for table `messages`
102 --
103
104 CREATE TABLE `messages` (
105 `message_id` int(11) unsigned NOT NULL auto_increment,
106 `user_id` int(11) unsigned NOT NULL default '0',
107 `del` tinyint(1) NOT NULL default '0',
108 `cache_key` varchar(128) NOT NULL default '',
c6e808e fixed mysql SQL scripts for new created column
svncommit authored
109 `created` datetime NOT NULL default '0000-00-00 00:00:00',
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
110 `idx` int(11) unsigned NOT NULL default '0',
111 `uid` int(11) unsigned NOT NULL default '0',
112 `subject` varchar(255) NOT NULL default '',
113 `from` varchar(255) NOT NULL default '',
114 `to` varchar(255) NOT NULL default '',
115 `cc` varchar(255) NOT NULL default '',
116 `date` datetime NOT NULL default '0000-00-00 00:00:00',
117 `size` int(11) unsigned NOT NULL default '0',
118 `headers` text NOT NULL,
119 `body` longtext,
120 PRIMARY KEY (`message_id`),
121 KEY `user_id` (`user_id`),
122 KEY `cache_key` (`cache_key`),
123 KEY `idx` (`idx`),
124 KEY `uid` (`uid`)
535da27 @thomascube Updated installation instructions
thomascube authored
125 );
1cded85 @thomascube Re-design of caching (new database table added\!); some bugfixes; Pos…
thomascube authored
126
127
Something went wrong with that request. Please try again.