diff options
Diffstat (limited to 'controller/schema.sql')
-rw-r--r-- | controller/schema.sql | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/controller/schema.sql b/controller/schema.sql index 1328d999..8ff1ff77 100644 --- a/controller/schema.sql +++ b/controller/schema.sql @@ -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, |