PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE `migrations` (`id` text,PRIMARY KEY (`id`));
INSERT INTO migrations VALUES('202312101416');
INSERT INTO migrations VALUES('202312101430');
INSERT INTO migrations VALUES('202402151347');
INSERT INTO migrations VALUES('2024041121742');
INSERT INTO migrations VALUES('202406021630');
INSERT INTO migrations VALUES('202409271400');
INSERT INTO migrations VALUES('202407191627');
INSERT INTO migrations VALUES('202408181235');
CREATE TABLE IF NOT EXISTS "pre_auth_keys"  (`id` integer,`key` text,`user_id` integer,`reusable` numeric,`ephemeral` numeric DEFAULT false,`used` numeric DEFAULT false,`created_at` datetime,`expiration` datetime, `tags` text,PRIMARY KEY (`id`),CONSTRAINT `fk_pre_auth_keys_user` FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE CASCADE);
INSERT INTO pre_auth_keys VALUES(1,'463a8b372963aeaca12400faa0c7ea29e9bfa3b4c59e9622',3,0,0,1,'2023-05-19 05:09:19.66636462+00:00','2023-05-19 05:14:19.664224869+00:00',NULL);
INSERT INTO pre_auth_keys VALUES(2,'77a019cb12c0d0b9347a17ab23fa4c87983814fe36bb2fbb',14,0,0,0,'2024-05-03 08:13:55.8614948+00:00','2024-05-04 08:13:55.85782156+00:00',NULL);
CREATE TABLE IF NOT EXISTS "routes"  (`id` integer,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,"node_id" integer,`prefix` text,`advertised` numeric,`enabled` numeric,`is_primary` numeric,PRIMARY KEY (`id`),CONSTRAINT `fk_nodes_routes` FOREIGN KEY (`node_id`) REFERENCES `nodes`(`id`) ON DELETE CASCADE);
INSERT INTO routes VALUES(1,'2023-05-19 07:09:23.387641743+02:00','2023-05-22 09:48:18.908103256+02:00',NULL,3,'192.168.224.0/21',1,0,0);
CREATE TABLE IF NOT EXISTS "api_keys"  (`id` integer,`prefix` text UNIQUE,`hash` blob,`created_at` datetime,`expiration` datetime,`last_seen` datetime,PRIMARY KEY (`id`));
CREATE TABLE IF NOT EXISTS "nodes"  (`id` integer,`machine_key` text,`node_key` text,`disco_key` text,`hostname` text,`given_name` varchar(63),`user_id` integer,`register_method` text,`forced_tags` text,`auth_key_id` integer,`last_seen` datetime,`expiry` datetime,`host_info` text,`endpoints` text,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,`ipv4` text,`ipv6` text,PRIMARY KEY (`id`),CONSTRAINT `fk_nodes_user` FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE CASCADE,CONSTRAINT `fk_nodes_auth_key` FOREIGN KEY (`auth_key_id`) REFERENCES `pre_auth_keys`(`id`) ON DELETE SET NULL);
INSERT INTO nodes VALUES(1,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','desktop-54','node001',2,'cli','null',NULL,'2025-01-16 10:47:40.213920406+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[b8f0:cf44:22c8:82d1:f79:c3eb:9144:c24f]:6142","[8e25:af1:e31a:8fcc:7dcf:be1:a3c9:ed6a]:38766","[37a1:215f:bf3d:3fb1:6399:f7cb:4048:3ca8]:51666","137.242.125.72:25376","86.84.184.63:26062","[c187:a8:1181:8321:28ab:fe72:b0b8:8ec6]:41236","[9089:461f:ad5b:68d4:f7a8:618a:a52a:56ac]:63162"]','2023-05-17 19:38:13.531518257+02:00','2025-01-16 10:47:40.214263246+01:00',NULL,'100.64.0.1','fd7a:115c:a1e0::1');
INSERT INTO nodes VALUES(2,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','db-91','node002',1,'cli',NULL,NULL,'2025-01-26 08:14:11.090449666+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["165.5.239.20:48876","44.184.117.89:36643","90.223.136.253:7056","[e43c:be7:7f4e:8217:a009:7f9d:a510:1af6]:18872","[3a86:865b:2f4c:f3b7:88a0:4aa2:f05d:c3fd]:47680"]','2023-05-18 10:09:21.757289398+02:00','2025-01-26 08:14:11.091108158+01:00',NULL,'100.64.0.2','fd7a:115c:a1e0::2');
INSERT INTO nodes VALUES(3,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','lt-24','node003',3,'authkey','[]',1,'2025-01-22 11:01:10.431892865+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["219.238.10.240:64443","[5e3d:ce1d:284e:9f89:155c:bff2:a65:d667]:51808"]','2023-05-19 07:09:21.399903526+02:00','2025-01-22 11:01:10.432002736+01:00',NULL,'100.64.0.3','fd7a:115c:a1e0::3');
INSERT INTO nodes VALUES(4,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','db-36','node004',4,'cli',NULL,NULL,'2025-01-26 08:13:58.345329896+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[8a81:30b8:5d50:73d7:9039:f2ce:c1be:a099]:43373","76.78.238.163:55069"]','2023-06-10 09:31:51.940506933+02:00','2025-01-26 08:13:58.345780429+01:00',NULL,'100.64.0.4','fd7a:115c:a1e0::4');
INSERT INTO nodes VALUES(5,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','srv-09','node005',4,'cli',NULL,NULL,'2025-01-26 08:13:52.985209632+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[b12e:af88:3c55:41f8:5fba:2aa3:3248:15c1]:23643","186.84.191.82:2621","[c9d0:4e15:513a:171b:9911:f9a0:cccf:cd83]:24151","66.84.158.199:63451","47.94.115.240:6677"]','2023-06-11 13:56:42.694329408+02:00','2025-01-26 08:13:52.985552336+01:00',NULL,'100.64.0.5','fd7a:115c:a1e0::5');
INSERT INTO nodes VALUES(6,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','email-01','node006',4,'cli',NULL,NULL,'2025-01-26 08:14:07.254903549+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[f739:43a6:4363:817e:34d9:3cc:1272:dba1]:26597","220.204.45.94:59135","187.96.173.136:34092","[fece:76ed:4c23:1e89:f225:97a1:94be:b5c4]:33472","[e1e6:a14:535a:668b:698:f125:543f:b5b7]:31740"]','2023-06-11 13:57:44.975695604+02:00','2025-01-26 08:14:07.255223389+01:00',NULL,'100.64.0.6','fd7a:115c:a1e0::6');
INSERT INTO nodes VALUES(7,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','lt-67','node007',4,'cli',NULL,NULL,'2025-01-26 08:12:22.511406544+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[8ddd:4aae:2b94:4c1a:d05f:65d2:2bdb:b400]:42839","[c493:a941:58b6:7634:6221:70ba:20e6:40c4]:35486","[9b54:61a6:c678:edac:956f:741e:5e2c:9ec9]:17930","[cd3f:af1c:fcb4:bcb3:806e:adf4:3f3f:ab36]:58513","[7a83:6a84:9f15:ba1a:9671:3d54:2e31:d5e9]:64893","167.223.65.194:6907"]','2023-06-11 14:16:56.951313537+02:00','2025-01-26 08:12:22.511838306+01:00',NULL,'100.64.0.7','fd7a:115c:a1e0::7');
INSERT INTO nodes VALUES(8,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','srv-71','node008',5,'cli',NULL,NULL,'2025-01-26 08:14:08.383652695+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["107.117.104.69:47662","[adea:86d3:b312:f445:d835:6023:f1f:f928]:27483","124.104.237.237:47957"]','2023-06-11 19:59:30.401970393+02:00','2025-01-26 08:14:08.384047921+01:00',NULL,'100.64.0.8','fd7a:115c:a1e0::8');
INSERT INTO nodes VALUES(9,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','email-22','node009',6,'cli',NULL,NULL,'2025-01-22 11:01:12.033798488+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[5b29:3bfe:7aa9:2767:900a:8142:1ae:eb94]:59942","165.200.68.0:39862"]','2023-06-17 19:40:45.468789461+02:00','2025-01-22 11:01:12.034166898+01:00',NULL,'100.64.0.9','fd7a:115c:a1e0::9');
INSERT INTO nodes VALUES(10,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','desktop-07','node010',6,'cli',NULL,NULL,'2025-01-25 22:09:32.216704757+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["2.116.83.236:33635","41.172.94.101:32111","223.204.123.230:38090","[9394:b33d:67e:fde5:21f8:77e8:97a8:bbb7]:47884","14.155.207.231:4806"]','2023-06-20 11:18:35.905417341+02:00','2025-01-25 22:09:32.216953236+01:00',NULL,'100.64.0.10','fd7a:115c:a1e0::a');
INSERT INTO nodes VALUES(11,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','lt-86','node011',7,'cli',NULL,NULL,'2025-01-25 21:58:31.767301396+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["22.207.212.228:27547","[2c3e:2260:8c34:275:2287:b721:1bdb:d462]:59540","70.115.64.117:6906","147.25.71.84:48460","[7137:65e3:83f9:ae56:6e7e:cc0c:9d64:64fd]:52919"]','2023-06-20 11:35:15.063855316+02:00','2025-01-25 21:58:31.767562461+01:00',NULL,'100.64.0.11','fd7a:115c:a1e0::b');
INSERT INTO nodes VALUES(12,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','web-89','node012',5,'cli',NULL,NULL,'2025-01-26 08:14:25.345334172+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[e758:c726:ced4:43ea:60fd:3ad8:1b8b:b514]:15200","[314c:5aba:d6ac:63d3:4de3:2c46:5e60:903b]:30789","[6883:e8c2:287f:71c8:9417:824b:b3cd:29d4]:51083"]','2023-06-20 18:22:35.061914624+02:00','2025-01-26 08:14:25.345710569+01:00',NULL,'100.64.0.12','fd7a:115c:a1e0::c');
INSERT INTO nodes VALUES(18,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','web-67','node018',9,'cli',NULL,NULL,'2025-01-26 01:15:31.831355377+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["33.51.84.119:46756","[c844:704e:c3c0:e709:8f94:3564:1b4d:d2d9]:8357","[169:f098:49e9:99af:27bb:802f:fc22:bd59]:63749","[2acf:3f32:1763:5d21:88a:4af:8779:1b1d]:36283"]','2023-06-22 08:30:54.08720463+02:00','2025-01-26 01:15:31.831742232+01:00',NULL,'100.64.0.16','fd7a:115c:a1e0::10');
INSERT INTO nodes VALUES(19,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','desktop-48','node019',10,'cli','null',NULL,'2024-08-07 09:35:12.220368767+00:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["191.156.96.176:5489","[166e:c30:4d73:440f:456a:22be:71e1:142b]:33036"]','2023-07-03 15:18:03.829428454+02:00','2024-09-18 16:15:14.037990869+02:00',NULL,'100.64.0.13','fd7a:115c:a1e0::d');
INSERT INTO nodes VALUES(20,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','srv-39','node020',11,'cli',NULL,NULL,'2025-01-24 21:43:10.483328442+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["17.32.175.58:63234","81.17.18.155:10091","171.238.29.81:53035","[cfa5:e342:a85f:891c:cff3:24ef:4692:f8a0]:31064","207.187.74.99:12216"]','2023-07-10 12:40:34.838579199+02:00','2025-01-24 21:43:10.483531762+01:00',NULL,'100.64.0.14','fd7a:115c:a1e0::e');
INSERT INTO nodes VALUES(21,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','laptop-07','node021',11,'cli','null',NULL,'2023-11-20 07:19:19.447470862+00:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["1.118.111.70:57112","9.144.234.157:13194","[86df:346:dfa1:bd79:e59e:3d3f:b98a:63d6]:59098","[4b06:6a05:94bd:4bca:676:93a4:2e20:b923]:23713"]','2023-07-10 12:42:43.290469734+02:00','2024-09-18 16:15:14.03886353+02:00',NULL,'100.64.0.15','fd7a:115c:a1e0::f');
INSERT INTO nodes VALUES(22,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','web-70','node022',6,'cli',NULL,NULL,'2025-01-19 14:04:19.025822598+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["218.87.248.142:13273","222.154.224.82:48446","9.237.225.227:64622","[46a1:e1e6:6b82:6599:acc7:2273:afea:f09f]:38018"]','2023-08-05 12:08:48.132161695+02:00','2025-01-19 14:04:19.032514264+01:00',NULL,'100.64.0.17','fd7a:115c:a1e0::11');
INSERT INTO nodes VALUES(23,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','email-11','node023',12,'cli','null',NULL,'2024-12-07 19:25:56.935152754+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[4c65:a6f:293f:8d48:f136:8b6a:185a:7ec7]:43854","43.114.58.145:47143","[758f:df49:401f:abcb:57ff:c04b:79e6:8519]:62313","[2458:76c5:7d48:c26f:34e:1663:6911:ff6e]:22202","66.66.46.14:16686"]','2023-12-15 08:05:56.592241745+01:00','2024-12-07 19:25:56.935317645+01:00',NULL,'100.64.0.18','fd7a:115c:a1e0::12');
INSERT INTO nodes VALUES(24,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','desktop-97','node024',12,'cli',NULL,NULL,'2025-01-26 00:04:55.348199222+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[e79c:8c65:bff5:d873:2599:3f53:d49b:617a]:59079","137.167.193.123:34677","159.52.2.200:7205","[5b7b:e424:ea77:aa8a:f835:d6bb:2e1f:52ea]:19152"]','2023-12-15 11:14:36.765183054+01:00','2025-01-26 00:04:55.34833514+01:00',NULL,'100.64.0.19','fd7a:115c:a1e0::13');
INSERT INTO nodes VALUES(25,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','email-08','node025',6,'cli',NULL,NULL,'2025-01-26 08:14:57.87480236+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[74f:3ce5:744d:cd4c:eba2:4e83:2f25:8e32]:35248","[769:97e6:7060:f428:ee55:f77:43a7:8d18]:61446","[630f:7c1f:d48b:ea66:23d7:1ab9:8bd1:10f3]:25600","160.27.109.39:47606"]','2024-01-05 17:32:40.940566279+01:00','2025-01-26 08:14:57.875128359+01:00',NULL,'100.64.0.20','fd7a:115c:a1e0::14');
INSERT INTO nodes VALUES(26,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','desktop-87','node026',6,'cli',NULL,NULL,'2025-01-26 08:11:54.580017267+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[1e45:fbc:2c6d:d1c2:a4dc:9086:f55b:6e96]:54073","[be93:4c8a:facf:a4fa:29d:ed91:91f1:12b2]:57075","[2c67:a9f3:3163:c675:3386:2447:1cc:ed3a]:42590","64.137.67.1:56198","163.42.128.241:47535","49.160.22.202:42427","[1526:e34a:8857:394e:bbe0:c043:4b37:68d4]:5245","32.31.195.128:7039","[c50a:ec:e2e:e109:3a08:f56b:2928:4921]:61265","221.147.144.138:44737","136.208.142.64:41091"]','2024-01-05 17:34:19.811670479+01:00','2025-01-26 08:11:54.58066838+01:00',NULL,'100.64.0.21','fd7a:115c:a1e0::15');
INSERT INTO nodes VALUES(27,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','web-56','node027',6,'cli','null',NULL,'2024-01-16 14:32:21.570104175+00:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[a2b8:ea55:f9e3:2c00:f423:8c56:7fec:c617]:53793","[ed88:2277:3c9a:4f64:a25e:5b41:a3ca:e904]:27852","[d203:40a2:5efc:4a42:8910:81f8:59c6:4d8d]:23389","187.126.162.12:25054","[5d8b:9391:47f1:1bbc:e01:92de:4a90:7614]:42410","172.81.188.131:23453"]','2024-01-05 17:48:25.466030859+01:00','2024-09-18 16:15:14.040766068+02:00',NULL,'100.64.0.22','fd7a:115c:a1e0::16');
INSERT INTO nodes VALUES(28,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','laptop-98','node028',7,'cli',NULL,NULL,'2025-01-24 15:11:59.137108429+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["113.143.9.36:55432","[e266:66fe:4929:3831:7830:6f10:1572:20df]:9977","[afe5:7d57:fac5:a1c5:78d4:ee33:d474:1e56]:52223","7.208.95.117:299"]','2024-01-15 09:34:54.847632697+01:00','2025-01-24 15:11:59.137302845+01:00',NULL,'100.64.0.23','fd7a:115c:a1e0::17');
INSERT INTO nodes VALUES(29,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','web-76','node029',7,'cli',NULL,NULL,'2025-01-24 14:00:44.067705144+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[24c5:f1ec:38a5:5a2d:7224:b76b:cd04:e6d2]:63943","162.176.178.140:46577","[4f52:1708:c0a:7991:9c16:bd7d:4045:195d]:50362"]','2024-01-15 15:18:12.2871978+01:00','2025-01-24 14:00:44.067944989+01:00',NULL,'100.64.0.24','fd7a:115c:a1e0::18');
INSERT INTO nodes VALUES(30,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','laptop-86','node030',7,'cli','null',NULL,'2024-02-05 12:14:40.065688294+00:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[acfe:eccd:ac4c:8d39:dc9b:840c:c97a:dbc5]:56981","[c204:d59b:29a8:ac18:75bc:1a4a:755e:a8f2]:26579","35.41.214.64:38835","143.202.189.84:43171","[8679:8c46:1c66:cd1e:95f8:2b0a:503c:819b]:57389"]','2024-01-15 15:21:43.217136004+01:00','2024-09-18 16:15:14.041757308+02:00',NULL,'100.64.0.25','fd7a:115c:a1e0::19');
INSERT INTO nodes VALUES(31,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','srv-51','node031',7,'cli','null',NULL,'2024-02-22 08:35:27.098819037+00:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[7f3b:f876:2230:c8ee:99c0:d76a:2f38:10e9]:33365","[c7af:10d6:9f3d:9dd2:3423:afc0:aa2:e156]:5125","11.55.50.90:25074","[c7aa:b53:8762:dc6e:5d4a:a2f3:16c7:3d3a]:5279"]','2024-01-29 16:05:35.338524634+01:00','2024-09-18 16:15:14.042191514+02:00',NULL,'100.64.0.26','fd7a:115c:a1e0::1a');
INSERT INTO nodes VALUES(32,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','db-70','node032',7,'cli','null',NULL,'2024-04-09 13:59:43.37062537+00:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[a1ed:3568:9b48:6735:e553:a273:ea02:7271]:46613","90.225.231.207:5490"]','2024-01-30 10:41:58.31917869+01:00','2024-09-18 16:15:14.042506082+02:00',NULL,'100.64.0.27','fd7a:115c:a1e0::1b');
INSERT INTO nodes VALUES(33,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','web-02','node033',13,'cli',NULL,NULL,'2025-01-23 21:19:25.034740145+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[fc74:9d:e278:2d3d:8d46:7e4f:ce11:39b5]:6716","[bc29:715c:cdce:f1f6:8630:4929:ea1e:5c03]:10918","[af8:f5e8:32f0:75ee:d351:c0e9:78e:93d9]:12624","71.151.27.31:51063"]','2024-02-03 16:33:26.706408143+01:00','2025-01-23 21:19:25.035093942+01:00',NULL,'100.64.0.28','fd7a:115c:a1e0::1c');
INSERT INTO nodes VALUES(34,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','laptop-79','node034',13,'cli',NULL,NULL,'2025-01-26 08:11:55.430892992+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["14.172.203.164:46293","[c:e6fc:18ea:2e45:6bef:c1c1:f84e:b1e2]:62296","71.155.69.236:8707"]','2024-02-03 16:42:32.683785672+01:00','2025-01-26 08:11:55.431204644+01:00',NULL,'100.64.0.29','fd7a:115c:a1e0::1d');
INSERT INTO nodes VALUES(35,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','srv-65','node035',5,'cli',NULL,NULL,'2025-01-21 17:41:56.706838249+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["139.180.210.231:32286","171.29.58.211:2336","200.47.65.115:32030"]','2024-02-03 16:51:52.010016072+01:00','2025-01-21 17:41:56.707118547+01:00',NULL,'100.64.0.30','fd7a:115c:a1e0::1e');
INSERT INTO nodes VALUES(36,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','srv-75','node036',13,'cli','null',NULL,'2025-01-19 14:01:48.956567669+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["122.50.5.12:7674","[a641:3f06:63bf:b716:4658:1e5b:ac6f:e14]:13490","197.206.147.31:58506","[b1e8:68a0:4017:a243:61d0:b303:7860:18e]:28633","[e5b8:6c78:ce2f:cf6f:13fb:401f:8223:3f04]:54121","38.137.88.247:35801","[eec2:61c0:e20a:2fa0:5e4d:56a4:5071:881b]:36628"]','2024-02-09 12:34:57.879970954+01:00','2025-01-19 14:01:48.956830267+01:00',NULL,'100.64.0.31','fd7a:115c:a1e0::1f');
INSERT INTO nodes VALUES(37,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','db-61','node037',5,'cli',NULL,NULL,'2025-01-26 08:12:35.773797291+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[3a31:6dd2:cc04:d20:e5d1:8664:3ec9:71d2]:21117","27.214.20.185:57647","[8c40:dd59:c31d:dd18:321:58a:11fa:d85a]:43064","168.4.78.117:48474","90.45.218.0:29326","90.233.46.138:29846","8.137.133.59:22781","[cb5c:f8d4:ccb0:8333:8ec:170c:a2b0:941d]:26248","[5802:df5c:8853:4851:6dcf:cb83:8208:d143]:24568"]','2024-02-27 12:14:40.452601042+01:00','2025-01-26 08:12:35.774174083+01:00',NULL,'100.64.0.32','fd7a:115c:a1e0::20');
INSERT INTO nodes VALUES(38,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','srv-59','node038',6,'cli',NULL,NULL,'2025-01-25 21:52:13.380610729+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[8125:ebe4:83e1:4806:f061:5bd9:a08a:8ccc]:6467","114.199.17.195:52817","[de36:fc02:8cf4:c60d:824a:9963:2440:5b5d]:39343"]','2024-05-22 08:08:16.045350656+02:00','2025-01-25 21:52:13.381028865+01:00',NULL,'100.64.0.33','fd7a:115c:a1e0::21');
INSERT INTO nodes VALUES(42,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','web-21','node042',14,'cli',NULL,NULL,'2025-01-22 12:09:19.893938069+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[3a3f:717c:1ea3:7c82:81e4:5d9d:765f:7da4]:6540","[bc95:459c:aab:499d:4354:d239:ef14:dcb]:14429","[f673:7912:6d5e:7244:62ca:9500:78f5:31c0]:27677"]','2024-07-03 11:12:29.418355657+02:00','2025-01-22 12:09:19.89470831+01:00',NULL,'100.64.0.37','fd7a:115c:a1e0::25');
INSERT INTO nodes VALUES(43,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','lt-12','node043',14,'cli',NULL,NULL,'2025-01-22 04:20:37.032313126+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[c91c:4366:d3bd:a993:b5e:75c7:ef8e:8166]:46974","191.185.253.85:37427","17.31.200.70:26794","[183d:f2d6:b80:36c5:318e:64e9:7f4a:b389]:12440"]','2024-07-03 14:48:50.263910778+02:00','2025-01-22 04:20:37.032585258+01:00',NULL,'100.64.0.34','fd7a:115c:a1e0::22');
INSERT INTO nodes VALUES(44,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','web-74','node044',14,'cli',NULL,NULL,'2025-01-22 12:43:56.696054645+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[9e5b:f6da:727b:9014:ca72:1f2c:87a8:8e81]:62466","39.179.118.209:64932","[cc06:5e56:fb0d:b760:b501:efab:c73b:b492]:26172","162.210.141.106:52036","[84ef:a164:d1c:d20d:797c:753e:f8fb:3108]:5767"]','2024-07-03 15:23:48.066044194+02:00','2025-01-22 12:43:56.732053672+01:00',NULL,'100.64.0.35','fd7a:115c:a1e0::23');
INSERT INTO nodes VALUES(45,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','web-77','node045',14,'cli',NULL,NULL,'2025-01-22 04:20:27.07284339+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[4c0c:1e2f:95d7:9d1f:b068:c776:ee11:ea3b]:46940","[7526:4960:73a9:911a:1fbf:92bf:1219:a6bf]:25440","[360:d312:e59c:79e0:a7e4:2295:caa0:946e]:17493","26.61.8.198:45861"]','2024-07-03 15:54:01.706018896+02:00','2025-01-22 04:20:27.073044637+01:00',NULL,'100.64.0.36','fd7a:115c:a1e0::24');
INSERT INTO nodes VALUES(46,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','laptop-06','node046',14,'cli',NULL,NULL,'2025-01-22 04:20:43.53444835+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["98.122.93.117:34230","[2077:6b7:927e:5e5c:a0f0:3352:1490:e1e1]:47997"]','2024-07-03 19:38:07.783745318+02:00','2025-01-22 04:20:43.534962909+01:00',NULL,'100.64.0.38','fd7a:115c:a1e0::26');
INSERT INTO nodes VALUES(47,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','srv-99','node047',14,'cli',NULL,NULL,'2025-01-22 04:20:25.918857828+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["125.19.14.225:12660","[d722:f972:c192:4cff:3916:e1e7:6d02:236b]:55695"]','2024-07-04 10:38:08.344092869+02:00','2025-01-22 04:20:25.919209254+01:00',NULL,'100.64.0.39','fd7a:115c:a1e0::27');
INSERT INTO nodes VALUES(48,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','lt-30','node048',15,'cli','null',NULL,'2024-10-20 13:53:33.831192385+02:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["97.124.255.12:40587","166.176.60.55:23674","[33c0:859c:4a78:8bdb:359e:31e4:1e71:7e39]:50383","[3aab:52a2:b9d3:1816:5627:336:6c60:57d7]:13486","22.83.180.41:14147","26.126.135.206:7777"]','2024-07-26 08:09:56.608302315+02:00','2024-10-20 13:53:33.831387627+02:00',NULL,'100.64.0.40','fd7a:115c:a1e0::28');
INSERT INTO nodes VALUES(49,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','web-11','node049',16,'cli','null',NULL,'2024-09-19 09:07:18.28136023+02:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[475b:3641:5abe:b0a8:8a68:dd51:8e80:3efa]:574","153.151.233.195:41734","[19b0:8be2:708:d27f:4d3d:3c93:9979:e9e8]:50438"]','2024-08-05 17:32:41.937626584+02:00','2024-09-19 09:07:18.281618912+02:00',NULL,'100.64.0.41','fd7a:115c:a1e0::29');
INSERT INTO nodes VALUES(50,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','db-28','node050',10,'cli','null',NULL,'2024-08-07 10:10:06.595550455+00:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["150.170.146.70:3311","139.117.239.209:33788","[2eac:ffa0:99fd:d109:c120:a35d:ed48:eea3]:51544","[7644:c348:2969:b90:e84f:94d4:b629:f266]:49336","169.247.3.239:36225","[5b4c:bb2:d43f:6ff4:d494:8616:a66a:d059]:50360","203.180.122.83:13344","63.162.234.32:11653"]','2024-08-07 11:50:54.144157179+02:00','2024-09-18 16:15:14.050033969+02:00',NULL,'100.64.0.42','fd7a:115c:a1e0::2a');
INSERT INTO nodes VALUES(51,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','laptop-32','node051',14,'cli',NULL,NULL,'2025-01-22 04:20:18.310186164+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["33.182.22.166:13283","181.10.243.176:14596"]','2024-08-07 14:19:31.156780417+02:00','2025-01-22 04:20:18.312102891+01:00',NULL,'100.64.0.43','fd7a:115c:a1e0::2b');
INSERT INTO nodes VALUES(52,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','srv-53','node052',17,'cli','null',NULL,'2024-12-25 17:27:58.515851096+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["72.183.239.155:49891","167.46.143.131:51781","[9e9f:93d:a8cf:c86f:17e3:9e2b:dc42:efa6]:3616"]','2024-09-22 15:48:41.385301399+02:00','2024-12-25 17:27:58.517153789+01:00',NULL,'100.64.0.45','fd7a:115c:a1e0::2d');
INSERT INTO nodes VALUES(53,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','srv-86','node053',17,'cli',NULL,NULL,'2025-01-26 08:11:05.595652839+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["69.219.0.37:43476","[6084:ee60:1697:864e:4a61:cf6e:e9b6:4c05]:63961","[fad7:2601:d286:4772:3cce:6e89:f66e:9eeb]:5430","216.60.124.11:45041","[d513:c472:d7a:f316:f610:10d0:9851:4feb]:3955","156.228.105.157:61542","102.126.185.0:50694","[156b:e934:d171:2693:8db4:f193:a58c:17b6]:24190","79.255.179.99:56057","[6369:4412:8cfc:2a5e:7cfb:8b45:e2ac:f98a]:16090","23.0.29.75:24889","[ab0:1193:7bb7:4a4a:c036:b911:994f:3aa4]:5116","[9491:7bd5:3979:414a:d198:a8b:f2e7:29b4]:62795","140.73.225.124:1710"]','2024-10-28 10:04:50.084492941+01:00','2025-01-26 08:11:05.596582615+01:00',NULL,'100.64.0.44','fd7a:115c:a1e0::2c');
INSERT INTO nodes VALUES(54,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','email-83','node054',14,'cli',NULL,NULL,'2025-01-22 12:00:41.056079317+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[7d2a:9d5:1fbb:54a7:fe7a:bc40:5ea2:ca20]:3534","[f630:8bb5:a4ff:95b1:6d95:decb:a5d2:373b]:42456","[6cc8:4fca:c46e:ed25:e9ef:43e:f0ea:121a]:60965","122.41.198.69:28824"]','2024-12-09 17:10:55.363593066+01:00','2025-01-22 12:00:41.056216357+01:00',NULL,'100.64.0.46','fd7a:115c:a1e0::2e');
INSERT INTO nodes VALUES(55,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','laptop-61','node055',18,'cli',NULL,NULL,'2025-01-19 14:04:25.389314117+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["182.195.110.58:14598","155.200.222.111:64410","[b554:3604:41e8:60a4:229:a09c:efd3:c73e]:39533"]','2024-12-10 13:56:39.287449662+01:00','2025-01-19 14:04:25.410288998+01:00',NULL,'100.64.0.47','fd7a:115c:a1e0::2f');
INSERT INTO nodes VALUES(56,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','laptop-79','node056',19,'cli',NULL,NULL,'2025-01-26 08:09:46.709773709+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[a329:52fe:45d1:996e:4767:d50c:6513:92ac]:54604","80.29.45.84:8223"]','2024-12-17 14:58:39.429211911+01:00','2025-01-26 08:09:46.710363543+01:00',NULL,'100.64.0.48','fd7a:115c:a1e0::30');
INSERT INTO nodes VALUES(57,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','email-71','node057',20,'cli',NULL,NULL,'2025-01-25 14:06:07.21327404+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["158.184.132.83:56087","[1129:e066:9c34:190d:7bf0:c941:18d6:f96b]:48892","7.227.92.62:26101","[86a5:23f7:afd9:863e:e7f5:63bb:ed61:9d51]:17106","110.235.245.179:61572","[57a6:fde1:814:36cd:f8de:668c:f5fb:4f60]:39714","[f08d:aeaa:107:fc17:5c30:ab9a:e31e:3147]:55879"]','2024-12-17 15:17:14.26936913+01:00','2025-01-25 14:06:07.213397766+01:00',NULL,'100.64.0.49','fd7a:115c:a1e0::31');
INSERT INTO nodes VALUES(58,'mkey:[REDACTED]','nodekey:[REDACTED]','discokey:[REDACTED]','lt-15','node058',12,'cli',NULL,NULL,'2025-01-25 18:41:03.881898904+01:00','0001-01-01 00:00:00+00:00','{"fake":"data"}','["[c493:2a8f:6625:98c3:4f4a:db04:19cb:c7df]:41081","96.25.93.176:21890","219.197.124.83:46550"]','2025-01-17 10:17:23.455895657+01:00','2025-01-25 18:41:03.882180987+01:00',NULL,'100.64.0.50','fd7a:115c:a1e0::32');
CREATE TABLE `policies` (`id` integer PRIMARY KEY AUTOINCREMENT,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,`data` text);
CREATE TABLE IF NOT EXISTS "users"  (`id` integer,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,`name` text UNIQUE,`display_name` text,`email` text,`provider_identifier` text,`provider` text,`profile_pic_url` text,PRIMARY KEY (`id`));
INSERT INTO users VALUES(1,'2023-05-17 19:36:55.859473496+02:00','2023-05-17 19:36:55.859473496+02:00',NULL,'user001','','',NULL,NULL,'');
INSERT INTO users VALUES(2,'2023-05-17 19:36:57.059073465+02:00','2023-05-17 19:36:57.059073465+02:00',NULL,'user002','','',NULL,NULL,'');
INSERT INTO users VALUES(3,'2023-05-18 10:10:36.248939077+02:00','2023-05-18 10:10:36.248939077+02:00',NULL,'user003','','',NULL,NULL,'');
INSERT INTO users VALUES(4,'2023-06-10 09:06:13.920718561+02:00','2023-06-10 09:06:13.920718561+02:00',NULL,'user004','','',NULL,NULL,'');
INSERT INTO users VALUES(5,'2023-06-11 19:58:32.371218434+02:00','2023-06-11 19:58:32.371218434+02:00',NULL,'user005','','',NULL,NULL,'');
INSERT INTO users VALUES(6,'2023-06-17 19:39:53.031565686+02:00','2023-06-17 19:39:53.031565686+02:00',NULL,'user006','','',NULL,NULL,'');
INSERT INTO users VALUES(7,'2023-06-20 11:35:09.325846831+02:00','2023-06-20 11:35:09.325846831+02:00',NULL,'user007','','',NULL,NULL,'');
INSERT INTO users VALUES(8,'2023-06-21 22:47:48.196234382+02:00','2023-06-21 22:47:48.196234382+02:00',NULL,'user008','','',NULL,NULL,'');
INSERT INTO users VALUES(9,'2023-06-22 08:30:35.068995572+02:00','2023-06-22 08:30:35.068995572+02:00',NULL,'user009','','',NULL,NULL,'');
INSERT INTO users VALUES(10,'2023-07-03 10:18:32.123226+02:00','2023-07-03 10:18:32.123226+02:00',NULL,'user010','','',NULL,NULL,'');
INSERT INTO users VALUES(11,'2023-07-03 10:18:37.130387602+02:00','2023-07-03 10:18:37.130387602+02:00',NULL,'user011','','',NULL,NULL,'');
INSERT INTO users VALUES(12,'2023-12-15 08:05:06.013615212+01:00','2023-12-15 08:05:06.013615212+01:00',NULL,'user012','','',NULL,NULL,'');
INSERT INTO users VALUES(13,'2024-02-03 16:32:42.224977233+01:00','2024-02-03 16:32:42.224977233+01:00',NULL,'user013','','',NULL,NULL,'');
INSERT INTO users VALUES(14,'2024-05-03 10:12:38.220973042+02:00','2024-05-03 10:12:38.220973042+02:00',NULL,'user014','','',NULL,NULL,'');
INSERT INTO users VALUES(15,'2024-07-26 08:08:40.979783263+02:00','2024-07-26 08:08:40.979783263+02:00',NULL,'user015','','',NULL,NULL,'');
INSERT INTO users VALUES(16,'2024-08-05 17:32:02.878091894+02:00','2024-08-05 17:32:02.878091894+02:00',NULL,'user016','','',NULL,NULL,'');
INSERT INTO users VALUES(17,'2024-09-22 15:48:00.287392203+02:00','2024-09-22 15:48:00.287392203+02:00',NULL,'user017','','',NULL,NULL,'');
INSERT INTO users VALUES(18,'2024-12-10 13:55:11.256977421+01:00','2024-12-10 13:55:11.256977421+01:00',NULL,'user018','','',NULL,NULL,'');
INSERT INTO users VALUES(19,'2024-12-17 14:57:58.550971236+01:00','2024-12-17 14:57:58.550971236+01:00',NULL,'user019','','',NULL,NULL,'');
INSERT INTO users VALUES(20,'2024-12-17 15:02:08.053169491+01:00','2024-12-17 15:02:08.053169491+01:00',NULL,'user020','','',NULL,NULL,'');
CREATE INDEX `idx_routes_deleted_at` ON `routes`(`deleted_at`);
CREATE UNIQUE INDEX `idx_api_keys_prefix` ON `api_keys`(`prefix`);
CREATE INDEX `idx_policies_deleted_at` ON `policies`(`deleted_at`);
CREATE INDEX `idx_users_deleted_at` ON `users`(`deleted_at`);
CREATE UNIQUE INDEX idx_provider_identifier ON users (provider_identifier) WHERE provider_identifier IS NOT NULL;
CREATE UNIQUE INDEX idx_name_provider_identifier ON users (name,provider_identifier);
CREATE UNIQUE INDEX idx_name_no_provider_identifier ON users (name) WHERE provider_identifier IS NULL;
COMMIT;
