summaryrefslogtreecommitdiffstats
path: root/raddb/mods-config/sql/ippool/sqlite/schema.sql
blob: 4dc25d130ac400ed4705ae2fe3ae207fd70671ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--
-- Table structure for table 'radippool'
--
CREATE TABLE radippool (
  id                    INTEGER PRIMARY KEY,
  pool_name             varchar(30) NOT NULL,
  framedipaddress       varchar(15) NOT NULL default '',
  nasipaddress          varchar(15) NOT NULL default '',
  calledstationid       VARCHAR(30) NOT NULL default '',
  callingstationid      VARCHAR(30) NOT NULL default '',
  expiry_time           DATETIME NOT NULL default (DATETIME('now')),
  username              varchar(64) NOT NULL default '',
  pool_key              varchar(30) NOT NULL default ''
);

CREATE INDEX radippool_poolname_expire ON radippool(pool_name, expiry_time);
CREATE INDEX radippool_framedipaddress ON radippool(framedipaddress);
CREATE INDEX radippool_nasip_poolkey_ipaddress ON radippool(nasipaddress, pool_key, framedipaddress);