source: npl/mailserver/dspam/dspam-3.10.2/src/tools.mysql_drv/mysql_objects-4.1.sql

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.8 KB
Line 
1-- $Id: mysql_objects-4.1.sql,v 1.43 2011/05/09 22:58:48 sbajic Exp $
2
3--
4-- This file contains statements for creating the DSPAM
5-- database objects for MySQL 4.1 or greater.
6--
7
8create table dspam_token_data (
9  uid int unsigned not null,
10  token bigint unsigned not null,
11  spam_hits bigint unsigned not null,
12  innocent_hits bigint unsigned not null,
13  last_hit date not null
14) engine=MyISAM default charset=latin1 collate=latin1_general_ci pack_keys=1;
15
16create unique index id_token_data_01 on dspam_token_data(uid,token);
17
18create table dspam_signature_data (
19  uid int unsigned not null,
20  signature char(32) COLLATE latin1_general_ci not null,
21  data longblob not null,
22  length int unsigned not null,
23  created_on date not null
24) engine=MyISAM default charset=latin1 collate=latin1_general_ci max_rows=2500000 avg_row_length=8096;
25
26create unique index id_signature_data_01 on dspam_signature_data(uid,signature);
27create index id_signature_data_02 on dspam_signature_data(created_on);
28
29create table dspam_stats (
30  uid int unsigned primary key,
31  spam_learned bigint unsigned not null,
32  innocent_learned bigint unsigned not null,
33  spam_misclassified bigint unsigned not null,
34  innocent_misclassified bigint unsigned not null,
35  spam_corpusfed bigint unsigned not null,
36  innocent_corpusfed bigint unsigned not null,
37  spam_classified bigint unsigned not null,
38  innocent_classified bigint unsigned not null
39) engine=MyISAM default charset=latin1 collate=latin1_general_ci;
40
41create table dspam_preferences (
42  uid int unsigned not null,
43  preference varchar(32) COLLATE latin1_general_ci not null,
44  value varchar(64) COLLATE latin1_general_ci not null
45) engine=MyISAM default charset=latin1 collate=latin1_general_ci;
46
47create unique index id_preferences_01 on dspam_preferences(uid, preference);
Note: See TracBrowser for help on using the repository browser.