blob: 86f91216812b9501ed1f93d91dd079f8b03dda0b [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--
20CREATE TABLE (
21 id int(11) PRIMARY KEY,
22 pool_name varchar(30) NOT NULL,
23 framedipaddress varchar(15) NOT NULL default '',
24 nasipaddress varchar(15) NOT NULL default '',
25 calledstationid VARCHAR(30) NOT NULL,
26 callingstationid VARCHAR(30) NOT NULL,
27 expiry_time DATETIME NULL default NULL,
28 username varchar(64) NOT NULL default '',
29 pool_key varchar(30) NOT NULL
30);
31
32CREATE INDEX radippool_poolname_expire ON radippool(pool_name, expiry_time);
33CREATE INDEX radippool_framedipaddress ON radippool(framedipaddress);
34CREATE INDEX radippool_nasip_poolkey_ipaddress ON radippool(nasipaddress, pool_key, framedipaddress);