blob: c5e5ae1f167e59196a19b99024aa76256e934274 [file] [log] [blame]
Matteo Scandolo48d3d2d2017-08-08 13:05:27 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Chetan Gaonker7f4bf742016-05-04 15:56:08 -070017--
18-- Table structure for table 'radippool'
19--
20
21CREATE TABLE radippool (
22 id BIGSERIAL PRIMARY KEY,
23 pool_name varchar(64) NOT NULL,
24 FramedIPAddress INET NOT NULL,
25 NASIPAddress VARCHAR(16) NOT NULL default '',
26 pool_key VARCHAR(64) NOT NULL default 0,
27 CalledStationId VARCHAR(64),
28 CallingStationId text NOT NULL default ''::text,
29 expiry_time TIMESTAMP(0) without time zone NOT NULL default 'now'::timestamp(0),
30 username text DEFAULT ''::text
31);
32
33CREATE INDEX radippool_poolname_expire ON radippool USING btree (pool_name, expiry_time);
34CREATE INDEX radippool_framedipaddress ON radippool USING btree (framedipaddress);
35CREATE INDEX radippool_nasip_poolkey_ipaddress ON radippool USING btree (nasipaddress, pool_key, framedipaddress);