1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#
# $Id$
#
# PostgreSQL schema for DHCP for FreeRADIUS
#
#
#
# Table structure for table 'dhcpgroupreply'
#
CREATE TABLE IF NOT EXISTS dhcpgroupreply (
id int(11) unsigned NOT NULL auto_increment,
groupname varchar(64) NOT NULL default '',
attribute varchar(64) NOT NULL default '',
op char(2) NOT NULL DEFAULT '=',
value varchar(253) NOT NULL default '',
context varchar(16) NOT NULL default '',
PRIMARY KEY (id),
KEY groupname (context,groupname(32))
);
#
# Table structure for table 'dhcpreply'
#
CREATE TABLE IF NOT EXISTS dhcpreply (
id int(11) unsigned NOT NULL auto_increment,
identifier varchar(253) NOT NULL default '',
attribute varchar(64) NOT NULL default '',
op char(2) NOT NULL DEFAULT '=',
value varchar(253) NOT NULL default '',
context varchar(16) NOT NULL default '',
PRIMARY KEY (id),
KEY identifier (context,identifier(32))
);
#
# Table structure for table 'dhcpgroup'
#
CREATE TABLE IF NOT EXISTS dhcpgroup (
id int(11) unsigned NOT NULL auto_increment,
identifier varchar(253) NOT NULL default '',
groupname varchar(64) NOT NULL default '',
priority int(11) NOT NULL default '1',
context varchar(16) NOT NULL default '',
PRIMARY KEY (id),
KEY identifier (context,identifier(32))
);
|