-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtbl_mailfile.sql
More file actions
executable file
·38 lines (31 loc) · 1010 Bytes
/
Copy pathtbl_mailfile.sql
File metadata and controls
executable file
·38 lines (31 loc) · 1010 Bytes
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
/* =================================================
*
* Entity Name: 'tbl_mailfile.sql'
* Description:
*
*
* $Id: tbl_mailfile.sql,v 1.1 2007/05/21 06:38:24 nweeks Exp $
*
* $Log: tbl_mailfile.sql,v $
* Revision 1.1 2007/05/21 06:38:24 nweeks
* Initial revision
*
*
* =================================================
*/
select 'Linking DNA tbl_mailfile.sql...' from rdb$database;
select 'Linking DNA tbl_mailfile' from rdb$database;
/* Small attchments are stored in the blob here,
* otherwise, they're stored on disk in repo/(00)substr(fileid,-3)/fileid.dat
* (in gzipped form)
*/
CREATE TABLE tbl_mailfile (
int_fileid INTEGER NOT NULL,
int_accountid INTEGER NOT NULL,
str_sha256 VARCHAR(64),
str_md5 VARCHAR(40),
blb_data BLOB SUB_TYPE TEXT, /* If less than a few hundred kB */
PRIMARY KEY(int_accountid, int_tagid),
FOREIGN KEY(int_accountid) REFERENCES tbl_mailaccount(int_accountid),
FOREIGN KEY(int_tagid) REFERENCES tlkp_mailaccounttags(int_tagid)
);