aboutsummaryrefslogtreecommitdiff
path: root/migrations/20220719122322_peer.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/20220719122322_peer.sql')
-rw-r--r--migrations/20220719122322_peer.sql11
1 files changed, 11 insertions, 0 deletions
diff --git a/migrations/20220719122322_peer.sql b/migrations/20220719122322_peer.sql
new file mode 100644
index 0000000..c06c574
--- /dev/null
+++ b/migrations/20220719122322_peer.sql
@@ -0,0 +1,11 @@
+-- Add migration script here
+CREATE TABLE peers (
+ id TEXT PRIMARY KEY,
+ addr CIDR NOT NULL,
+ public_key TEXT NOT NULL
+);
+CREATE TABLE networks (
+ id TEXT PRIMARY KEY,
+ subnet CIDR NOT NULL,
+ description TEXT
+)