File: mtotacct.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 (23 lines) | stat: -rw-r--r-- 710 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
SET search_path = public, pg_catalog;

--
-- Table structure for table 'mtotacct'
--
CREATE TABLE mtotacct (
    mtotacctid 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 mtotacct_acctdate_idx ON mtotacct USING btree (acctdate);
CREATE INDEX mtotacct_nasipaddress_idx ON mtotacct USING btree
(nasipaddress);
CREATE INDEX mtotacct_username_idx ON mtotacct USING btree (username);
CREATE INDEX mtotacct_userondate_idx ON mtotacct USING btree (username,
acctdate);