File: totacct.sql

package info (click to toggle)
freeradius 2.1.10%2Bdfsg-2%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 16,660 kB
  • ctags: 9,868
  • sloc: ansic: 81,746; sh: 13,128; php: 6,682; perl: 3,358; makefile: 1,410; sql: 1,301; python: 179; tcl: 35; sed: 23; ruby: 22
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);