File: mysql_schema

package info (click to toggle)
slash 2.2.6-8etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,672 kB
  • ctags: 1,915
  • sloc: perl: 23,113; sql: 1,878; sh: 433; makefile: 233
file content (52 lines) | stat: -rwxr-xr-x 1,607 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
DROP TABLE IF EXISTS message_drop;
CREATE TABLE message_drop (
        id      INT(11) NOT NULL auto_increment,
        user    INT(11) NOT NULL,
        fuser   INT(11) DEFAULT '0' NOT NULL,
        code    INT(11) DEFAULT '-1' NOT NULL,
        date    TIMESTAMP NOT NULL,
        altto   VARCHAR(50) DEFAULT '' NOT NULL,
        message BLOB DEFAULT '' NOT NULL,
        PRIMARY KEY (id)
) TYPE=MYISAM;

DROP TABLE IF EXISTS message_web;
CREATE TABLE message_web (
        id      INT(11) NOT NULL,
        user    INT(11) NOT NULL,
        fuser   INT(11) DEFAULT '0' NOT NULL,
        code    INT(11) DEFAULT '-1' NOT NULL,
        updated TIMESTAMP NOT NULL,
        readed  TINYINT(1) DEFAULT '0' NOT NULL,
        date    TIMESTAMP NOT NULL,
        KEY (fuser),
        KEY (user),
        PRIMARY KEY (id)
);

DROP TABLE IF EXISTS message_web_text;
CREATE TABLE message_web_text (
        id      INT(11) NOT NULL,
        subject BLOB DEFAULT '' NOT NULL,
        message BLOB DEFAULT '' NOT NULL,
        PRIMARY KEY (id)
);

DROP TABLE IF EXISTS message_codes;
CREATE TABLE message_codes (
        code    INT(11) NOT NULL,
        type    VARCHAR(32) NOT NULL,
        seclev  INT(11) DEFAULT '1' NOT NULL,
        modes   VARCHAR(32) DEFAULT '' NOT NULL,
        PRIMARY KEY (code)
);

DROP TABLE IF EXISTS message_log;
CREATE TABLE message_log (
        id      INT(11) DEFAULT '0' NOT NULL,
        user    INT(11) NOT NULL,
        fuser   INT(11) DEFAULT '0' NOT NULL,
        code    INT(11) DEFAULT '-1' NOT NULL,
        mode    INT(11) NOT NULL,
        date    TIMESTAMP NOT NULL
);