mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-15 09:20:10 +00:00
Add per-network relay stuff to sqlite table schema.
This commit is contained in:
parent
60f05518aa
commit
69076f8a45
@ -66,6 +66,13 @@ CREATE TABLE Network (
|
|||||||
revision integer NOT NULL DEFAULT(1)
|
revision integer NOT NULL DEFAULT(1)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE TABLE Relay (
|
||||||
|
networkId char(16) NOT NULL,
|
||||||
|
nodeId char(10) NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE UNIQUE INDEX Relay_networkId_nodeId ON Relay (networkId, nodeId);
|
||||||
|
|
||||||
CREATE TABLE Node (
|
CREATE TABLE Node (
|
||||||
id char(10) PRIMARY KEY NOT NULL,
|
id char(10) PRIMARY KEY NOT NULL,
|
||||||
identity varchar(4096) NOT NULL,
|
identity varchar(4096) NOT NULL,
|
||||||
|
@ -67,6 +67,13 @@
|
|||||||
" revision integer NOT NULL DEFAULT(1)\n"\
|
" revision integer NOT NULL DEFAULT(1)\n"\
|
||||||
");\n"\
|
");\n"\
|
||||||
"\n"\
|
"\n"\
|
||||||
|
"CREATE TABLE Relay (\n"\
|
||||||
|
" networkId char(16) NOT NULL,\n"\
|
||||||
|
" nodeId char(10) NOT NULL\n"\
|
||||||
|
");\n"\
|
||||||
|
"\n"\
|
||||||
|
"CREATE UNIQUE INDEX Relay_networkId_nodeId ON Relay (networkId, nodeId);\n"\
|
||||||
|
"\n"\
|
||||||
"CREATE TABLE Node (\n"\
|
"CREATE TABLE Node (\n"\
|
||||||
" id char(10) PRIMARY KEY NOT NULL,\n"\
|
" id char(10) PRIMARY KEY NOT NULL,\n"\
|
||||||
" identity varchar(4096) NOT NULL,\n"\
|
" identity varchar(4096) NOT NULL,\n"\
|
||||||
|
Loading…
Reference in New Issue
Block a user