document rlm_otp fd leak fix
[freeradius.git] / dialup_admin / sql / postgresql / mtotacct.sql
1 SET search_path = public, pg_catalog;
2
3 --
4 -- Table structure for table 'mtotacct'
5 --
6 CREATE TABLE mtotacct (
7     mtotacctid 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 mtotacct_acctdate_idx ON mtotacct USING btree (acctdate);
19 CREATE INDEX mtotacct_nasipaddress_idx ON mtotacct USING btree
20 (nasipaddress);
21 CREATE INDEX mtotacct_username_idx ON mtotacct USING btree (username);
22 CREATE INDEX mtotacct_userondate_idx ON mtotacct USING btree (username,
23 acctdate);