File: totacct.sql

package info (click to toggle)
freeradius 2.0.4%2Bdfsg-6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 14,884 kB
  • ctags: 9,109
  • sloc: ansic: 73,328; sh: 12,392; php: 6,679; perl: 3,075; makefile: 1,316; sql: 1,197; python: 171; tcl: 35; sed: 23
file content (24 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SET search_path = public, pg_catalog;

--
-- Table structure for table 'totacct'
--
CREATE TABLE totacct (
    totacctid bigSERIAL PRIMARY KEY,
    username TEXT DEFAULT '' NOT NULL,
    acctdate DATE DEFAULT 'now' NOT NULL,
    connnum BIGINT,
    conntotduration BIGINT,
    connmaxduration BIGINT,
    connminduration BIGINT,
    inputoctets BIGINT,
    outputoctets BIGINT,
    nasipaddress INET
);
CREATE INDEX totacct_acctdate_idx ON totacct USING btree (acctdate);
CREATE INDEX totacct_nasipaddress_idx ON totacct USING btree (nasipaddress);
CREATE INDEX totacct_nasondate_idx ON totacct USING btree (acctdate,
nasipaddress);
CREATE INDEX totacct_username_idx ON totacct USING btree (username);
CREATE INDEX totacct_userondate_idx ON totacct USING btree (username,
acctdate);