document rlm_otp fd leak fix
[freeradius.git] / dialup_admin / sql / postgresql / totacct.sql
1 SET search_path = public, pg_catalog;
2
3 --
4 -- Table structure for table 'totacct'
5 --
6 CREATE TABLE totacct (
7     totacctid bigSERIAL PRIMARY KEY,
8     username TEXT DEFAULT '' NOT NULL,
9     acctdate DATE DEFAULT 'now' NOT NULL,
10     connnum BIGINT,
11     conntotduration BIGINT,
12     connmaxduration BIGINT,
13     connminduration BIGINT,
14     inputoctets BIGINT,
15     outputoctets BIGINT,
16     nasipaddress INET
17 );
18 CREATE INDEX totacct_acctdate_idx ON totacct USING btree (acctdate);
19 CREATE INDEX totacct_nasipaddress_idx ON totacct USING btree (nasipaddress);
20 CREATE INDEX totacct_nasondate_idx ON totacct USING btree (acctdate,
21 nasipaddress);
22 CREATE INDEX totacct_username_idx ON totacct USING btree (username);
23 CREATE INDEX totacct_userondate_idx ON totacct USING btree (username,
24 acctdate);