Table "public.arg_strings"
Column Type Modifiers
argid integer not null default nextval('public.arg_strings_argid_seq'::text)
arg_string character varying(16) not null
Indexes: arg_strings_pkey primary key btree (arg_string),
arg_strings_argid_key unique btree (argid)
Table "public.usernames"
Column Type Modifiers
userid integer not null default nextval('public.usernames_userid_seq'::text)
username character varying(32) not null
Indexes: usernames_pkey primary key btree (username),
usernames_userid_key unique btree (userid)
Table "public.request_strings"
Column Type Modifiers
requestid integer not null default nextval('public.request_strings_requestid_seq'::text)
request_string character varying(64) not null
Indexes: request_strings_pkey primary key btree (request_string),
request_strings_requestid_key unique btree (requestid)
Table "public.whitelist"
Column Type Modifiers
ip inet not null
Indexes: whitelist_pkey primary key btree (ip)
Table "public.hosts"
Column Type Modifiers
ip inet not null
score integer  
score_ts timestamp without time zone  
Indexes: hosts_pkey primary key btree (ip)
Table "public.notice_templates"
Column Type Modifiers
id integer not null default nextval('public.notice_templates_id_seq'::text)
name character(8) not null
template text  
Indexes: notice_templates_pkey primary key btree (name)
Table "public.notified"
Column Type Modifiers
ip inet not null
nic_handle_notified character varying(16)  
notice_ts timestamp without time zone  
notice_name character(8)  
Indexes: notified_pkey primary key btree (ip)
Foreign Key constraints: $1 FOREIGN KEY (notice_name) REFERENCES notice_templates(name) ON UPDATE NO ACTION ON DELETE NO ACTION,
$2 FOREIGN KEY (ip) REFERENCES hosts(ip) ON UPDATE NO ACTION ON DELETE NO ACTION
Table "public.proxy_tests"
Column Type Modifiers
ip inet not null
open_proxy boolean default false
open_proxy_tested_at timestamp without time zone  
Indexes: proxy_tests_pkey primary key btree (ip)
Foreign Key constraints: $1 FOREIGN KEY (ip) REFERENCES hosts(ip) ON UPDATE NO ACTION ON DELETE NO ACTION
Table "public.blacklist"
Column Type Modifiers
ip inet not null
active boolean default false
first_event integer  
block_reason smallint  
blocked_at timestamp without time zone not null default now()
unblocked_at timestamp without time zone  
unblock_reason smallint  
Indexes: blacklist_pkey primary key btree (ip, blocked_at)
Foreign Key constraints: $1 FOREIGN KEY (first_event) REFERENCES eventrecords(eventid) ON UPDATE NO ACTION ON DELETE NO ACTION,
$2 FOREIGN KEY (ip) REFERENCES hosts(ip) ON UPDATE NO ACTION ON DELETE NO ACTION
Table "public.eventrecords"
Column Type Modifiers
eventid integer not null default nextval('public.eventrecords_eventid_seq'::text)
ts timestamp without time zone default now()
status smallint not null
userid integer  
ip inet not null
requestid integer not null
argid integer  
Indexes: eventrecords_pkey primary key btree (eventid),
event_ts_ip_index btree (ts, ip)
Foreign Key constraints: $1 FOREIGN KEY (ip) REFERENCES hosts(ip) ON UPDATE NO ACTION ON DELETE NO ACTION,
$2 FOREIGN KEY (requestid) REFERENCES request_strings(requestid) ON UPDATE NO ACTION ON DELETE NO ACTION,
$3 FOREIGN KEY (argid) REFERENCES arg_strings(argid) ON UPDATE NO ACTION ON DELETE NO ACTION,
$4 FOREIGN KEY (userid) REFERENCES usernames(userid) ON UPDATE NO ACTION ON DELETE NO ACTION
Table "public.freq401"
Column Type Modifiers
ip inet not null
freq401 double precision default 0
last_freq_computed_at timestamp without time zone  
Indexes: freq401_pkey primary key btree (ip)
Foreign Key constraints: $1 FOREIGN KEY (ip) REFERENCES hosts(ip) ON UPDATE NO ACTION ON DELETE NO ACTION