feat: add tables for PGCoordinator v2 (#10442)

Adds tables for a simplified PG Coordinator that only considers Peers and Tunnels, rather than agent/client distinctions we have today.
This commit is contained in:
Spike Curtis
2023-11-01 16:30:09 +04:00
committed by GitHub
parent 95ce697e3a
commit cac29e0b4d
7 changed files with 248 additions and 0 deletions
@@ -0,0 +1,18 @@
INSERT INTO tailnet_peers
(id, coordinator_id, updated_at, node, status)
VALUES (
'c0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
'2023-06-15 10:23:54+00',
'a fake protobuf byte string',
'ok'
);
INSERT INTO tailnet_tunnels
(coordinator_id, src_id, dst_id, updated_at)
VALUES (
'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
'c0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
'b0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
'2023-06-15 10:23:54+00'
);