Untested -- modifications to support IP ranges instead of ip/mask for IP assignment pools, also add portId to Rule for future use.

This commit is contained in:
Adam Ierymenko 2015-06-29 14:52:09 -07:00
parent 48a2ad032a
commit 5c9411a671
4 changed files with 224 additions and 176 deletions

View file

@ -18,10 +18,7 @@ CREATE TABLE Network (
CREATE TABLE Node (
id char(10) PRIMARY KEY NOT NULL,
identity varchar(4096) NOT NULL,
lastAt varchar(64),
lastSeen integer NOT NULL DEFAULT(0),
firstSeen integer NOT NULL DEFAULT(0)
identity varchar(4096) NOT NULL
);
CREATE TABLE Gateway (
@ -53,7 +50,7 @@ CREATE TABLE IpAssignmentPool (
ipVersion integer NOT NULL DEFAULT(4)
);
CREATE INDEX IpAssignmentPool_networkId ON IpAssignmentPool (networkId);
CREATE UNIQUE INDEX IpAssignmentPool_networkId_ipRangeStart ON IpAssignmentPool (networkId,ipRangeStart);
CREATE TABLE Member (
networkId char(16) NOT NULL REFERENCES Network(id) ON DELETE CASCADE,