From ddebe2d4c7fa4220d2cfad3693edfb15bf7a737c Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 21 Apr 2015 16:41:35 -0700 Subject: Network controller CRUD... :P --- controller/schema.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'controller/schema.sql') diff --git a/controller/schema.sql b/controller/schema.sql index f6d6e7e7..0d17a94b 100644 --- a/controller/schema.sql +++ b/controller/schema.sql @@ -71,9 +71,11 @@ CREATE TABLE Network ( CREATE TABLE Relay ( networkId char(16) NOT NULL, nodeId char(10) NOT NULL, - address varchar(64) NOT NULL + phyAddress varchar(64) NOT NULL ); +CREATE INDEX Relay_networkId ON Relay (networkId); + CREATE UNIQUE INDEX Relay_networkId_nodeId ON Relay (networkId, nodeId); CREATE TABLE Node ( @@ -86,6 +88,7 @@ CREATE TABLE Node ( CREATE TABLE Rule ( networkId char(16) NOT NULL, + ordering integer NOT NULL DEFAULT(0), nodeId char(10), vlanId integer, vlanPcp integer, -- cgit v1.2.3