PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
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 `machines` (`id` integer,`machine_key` varchar(64),`node_key` text,`disco_key` text,`ip_addresses` text,`hostname` text,`given_name` varchar(63),"user_id" integer,`register_method` text,`forced_tags` text,`auth_key_id` integer,`last_seen` datetime,`last_successful_update` datetime,`expiry` datetime,`host_info` text,`endpoints` text,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,PRIMARY KEY (`id`));
INSERT INTO machines VALUES(2,'dda8a58fa5db0d02a7351518342b1c1b6c57be2300e9d2c2600b42310c272560','8133aaff1056f74ba062d65ed71c619531b0d8bb3f455f9623ca62b21c765796','d5d8b487956f8ab8186682cd1cc8b1c0d1f38df3e0af2f1e100db219d72d05ca','fd7a:115c:a1e0::2,100.64.0.2','user6','user6',2,'oidc',NULL,0,'2023-08-10 20:39:17.723753+00:00','2023-08-10 20:38:29.407452+00:00','2023-08-11 04:31:47.962903+00:00','{"IPNVersion":"1.46.1-te42e60103-g4cea91365","BackendLogID":"3b49a2a5ab87c374de316f31901b27386e91803b577512c47fb770c4c2491f62","OS":"macOS","OSVersion":"12.6.8","Package":"IPNExtension","DeviceModel":"MacBookPro16,1","Hostname":"user6","Machine":"x86_64","GoArch":"amd64","GoArchVar":"v1","GoVersion":"go1.21rc3","Services":[{"Proto":"peerapi6","Port":47166},{"Proto":"peerapi4","Port":46590},{"Proto":"peerapi-dns-proxy","Port":1}],"NetInfo":{"MappingVariesByDestIP":false,"HairPinning":false,"WorkingIPv6":false,"OSHasIPv6":true,"WorkingUDP":true,"WorkingICMPv4":false,"UPnP":false,"PMP":false,"PCP":false,"PreferredDERP":2,"DERPLatency":{"1-v4":0.113968906,"10-v4":0.023436893,"11-v4":0.198267412,"12-v4":0.061961581,"13-v4":0.031651191,"14-v4":0.146547143,"16-v4":0.114270957,"17-v4":0.023428486,"18-v4":0.144492636,"19-v4":0.150996698,"2-v4":0.012436127,"20-v4":0.166397065,"21-v4":0.064436639,"22-v4":0.169095616,"24-v4":0.070928559,"3-v4":0.197250582,"4-v4":0.162028147,"5-v4":0.220367619,"6-v4":0.225762119,"7-v4":0.114449341,"8-v4":0.135539131,"9-v4":0.054314979}},"Userspace":false,"UserspaceRouter":true}','["67.58.239.134:41641","192.168.2.63:41641"]','2023-08-08 03:42:32.227355+00:00','2023-08-11 04:31:47.968673+00:00',NULL);
INSERT INTO machines VALUES(13,'5418566216128c1d55cb729d08b020c0948a4974c7ec8631ca2d87c94a57c62f','2df745735e7a024f59385687404555917d904c0cc6b2b4c376d86005fa0c50e9','bc23afab27bd633c993e5feb0cbc64b463bd06bd74e5b0ed34aa0c59db1241cc','fd7a:115c:a1e0::1,100.64.0.1','private-access','private-access',1,'authkey','["tag:routers-general"]',2,'2024-08-21 09:10:42.082477+00:00','2024-08-21 09:10:42.124509+00:00','0001-01-01 00:00:00+00:00','{"IPNVersion":"1.68.1-t92eacec73","BackendLogID":"ace1ce1f1029d84582595b60a979159f7ffc2d088c58bc58ce957d5b5d76ab65","OS":"linux","OSVersion":"6.1.102-111.182.amzn2023.aarch64","Container":true,"Distro":"alpine","DistroVersion":"3.18.6","Desktop":false,"Hostname":"private-access","Machine":"aarch64","GoArch":"arm64","GoVersion":"go1.22.4","RoutableIPs":["0.0.0.0/0","::/0","10.0.0.0/8","10.18.80.2/32"],"Services":[{"Proto":"peerapi6","Port":59780},{"Proto":"peerapi4","Port":58436},{"Proto":"peerapi-dns-proxy","Port":1}],"NetInfo":{"MappingVariesByDestIP":false,"HairPinning":null,"WorkingIPv6":false,"OSHasIPv6":true,"WorkingUDP":true,"WorkingICMPv4":false,"UPnP":false,"PMP":false,"PCP":false,"PreferredDERP":10,"DERPLatency":{"1-v4":0.072225784,"10-v4":0.006838935,"11-v4":0.190929032,"12-v4":0.059929235,"13-v4":0.034135764,"14-v4":0.160624902,"16-v4":0.081274428,"17-v4":0.027732861,"18-v4":0.152569261,"19-v4":0.156006631,"2-v4":0.021369602,"20-v4":0.191327522,"21-v4":0.072034124,"22-v4":0.17290295,"23-v4":0.24451928,"24-v4":0.07036978,"3-v4":0.218839858,"4-v4":0.154432955,"5-v4":0.205852211,"7-v4":0.106623559,"8-v4":0.142767263,"9-v4":0.055452594}},"Cloud":"aws","Userspace":false,"UserspaceRouter":false}','["54.218.81.157:55438","10.18.95.117:55438","172.17.0.1:55438"]','2023-08-09 07:25:28.410294+00:00','2024-08-21 09:10:42.125774+00:00',NULL);
INSERT INTO machines VALUES(14,'45b7283a09376c6e4a0e91c791cd7ed62d3ab67af04e2ab65ea769f13b5d01a8','3f122817b7daec63358d7f32037157cc0742b236ebe10159200e04661846dc12','ca8c018c9a84e1ee5bea886b353b85a1cbc41b26bad1a8ea09250a73ee3bc224','fd7a:115c:a1e0::3,100.64.0.3','user5','user5',2,'oidc',NULL,0,'2023-09-05 20:17:56.144957+00:00','2023-09-05 20:17:15.131619+00:00','2023-09-02 02:14:29.91958+00:00','{"IPNVersion":"1.48.1-t528f95da6-gc4e4acad7","BackendLogID":"105b508bb534b33b1fbbfcab5d1b35b2f8aa14898f7f1deb79f82a0b4556a337","OS":"macOS","OSVersion":"12.6.8","Package":"IPNExtension","DeviceModel":"MacBookPro16,1","Hostname":"user5","Machine":"x86_64","GoArch":"amd64","GoArchVar":"v1","GoVersion":"go1.21.0","Services":[{"Proto":"peerapi-dns-proxy","Port":1}],"NetInfo":{"MappingVariesByDestIP":false,"HairPinning":false,"WorkingIPv6":false,"OSHasIPv6":true,"WorkingUDP":true,"WorkingICMPv4":false,"UPnP":false,"PMP":false,"PCP":false,"PreferredDERP":2,"DERPLatency":{"1-v4":0.110587393,"10-v4":0.021509598,"11-v4":0.196329449,"12-v4":0.059015905,"13-v4":0.028908204,"14-v4":0.14475452,"16-v4":0.089070015,"17-v4":0.021616309,"18-v4":0.14320796,"19-v4":0.144814647,"2-v4":0.010198952,"20-v4":0.164708226,"21-v4":0.110530864,"22-v4":0.169718648,"24-v4":0.110470627,"3-v4":0.198647468,"4-v4":0.162606553,"5-v4":0.218460376,"6-v4":0.23733193,"7-v4":0.114587062,"8-v4":0.140155524,"9-v4":0.052894305}},"Userspace":false,"UserspaceRouter":true}','["67.58.239.134:41641","192.168.2.63:41641"]','2023-08-10 20:41:58.499623+00:00','2023-09-05 20:17:56.146062+00:00',NULL);
INSERT INTO machines VALUES(15,'46b10c2ee93b1da403a87d7d57eecd9b3bf47ce58425742bc44bb8967984f3e9','35e6f69d23d17c13c48c45c0b74d1c3db85b21736151bcc06933939dface88b0','393ae3076213aae7a3ac11bc08fb0ad5c690ee5c50a4522f209fb5b018ecc958','fd7a:115c:a1e0::4,100.64.0.4','user3','user3',3,'oidc',NULL,0,'2023-09-06 02:43:29.503895+00:00','2023-09-06 02:43:49.511926+00:00','2023-09-06 23:17:20.322291+00:00','{"IPNVersion":"1.46.1-te42e60103-g4cea91365","BackendLogID":"8f10b84dbe2a45b68242bbf236952cfe88fdce68de11d6c21d4ea9b6a3cbe0e4","OS":"macOS","OSVersion":"13.5.0","Package":"IPNExtension","DeviceModel":"MacBookPro16,1","Hostname":"user3","Machine":"x86_64","GoArch":"amd64","GoArchVar":"v1","GoVersion":"go1.21rc3","Services":[{"Proto":"peerapi6","Port":40203},{"Proto":"peerapi4","Port":37067},{"Proto":"peerapi-dns-proxy","Port":1}],"NetInfo":{"MappingVariesByDestIP":false,"HairPinning":false,"WorkingIPv6":false,"OSHasIPv6":true,"WorkingUDP":true,"WorkingICMPv4":false,"UPnP":true,"PMP":false,"PCP":false,"PreferredDERP":13,"DERPLatency":{"12-v4":0.026085574,"13-v4":0.00640859,"9-v4":0.024989145}},"Userspace":false,"UserspaceRouter":true}','["8.36.226.139:41641","192.168.5.49:41641"]','2023-08-10 21:11:29.400994+00:00','2023-09-06 02:43:49.512388+00:00',NULL);
INSERT INTO machines VALUES(16,'785f4b01cbbafb26f69acc95913f87c18f91b400526a8fea867e57d1f6979199','26ff15bb8b839d2648dd5ec3dd751c31a96c56604c9bcc7865dad2a285092b11','03dd9981e5e2b580dfc7c4fc6614e99dfa44671810a04f43b351d4a081fedfd7','fd7a:115c:a1e0::5,100.64.0.5','user1','user1',4,'oidc',NULL,0,'2023-09-06 02:44:13.123335+00:00','2023-09-06 02:43:43.131322+00:00','2023-09-06 22:13:57.020939+00:00','{"IPNVersion":"1.48.1-t528f95da6-gc4e4acad7","BackendLogID":"40e9bb1b2cc2f8a56648c6a892cfc00c0f03d2457822a59606e95d75a1e82fec","OS":"macOS","OSVersion":"13.5.0","Package":"IPNExtension","DeviceModel":"MacBookPro15,1","Hostname":"user1","Machine":"x86_64","GoArch":"amd64","GoArchVar":"v1","GoVersion":"go1.21.0","Services":[{"Proto":"peerapi6","Port":44445},{"Proto":"peerapi4","Port":41053},{"Proto":"peerapi-dns-proxy","Port":1}],"NetInfo":{"MappingVariesByDestIP":false,"HairPinning":false,"WorkingIPv6":true,"OSHasIPv6":true,"WorkingUDP":true,"WorkingICMPv4":false,"HavePortMap":true,"UPnP":true,"PMP":false,"PCP":false,"PreferredDERP":2,"DERPLatency":{"10-v4":0.178866462,"17-v4":0.17890099,"17-v6":0.178871041,"2-v4":0.083849135,"2-v6":0.085625895}},"Userspace":false,"UserspaceRouter":true}','["73.241.238.118:59407","73.241.238.118:57965","[2601:646:c500:3ad0:694f:e60a:54dd:9236]:41641","73.241.238.118:11709","73.241.238.118:41902","73.241.238.118:57674","73.241.238.118:41641","10.0.0.158:57965","[2601:646:c500:3ad0::670e]:57965","[2601:646:c500:3ad0:ce6:7064:450d:a01a]:57965","[2601:646:c500:3ad0:694f:e60a:54dd:9236]:57965"]','2023-08-10 23:58:34.357314+00:00','2023-09-06 02:44:13.123879+00:00',NULL);
INSERT INTO machines VALUES(17,'85892b41a04ffab78009c9129a87006e9af9335d4e3521939acddfb5a3edc0f1','7e7d018c338666e72b3b5ec2cc5e987bb294a88320740f07c9a337f07c2228b6','96425c4e4c62419e780b920f117183b77be80bc370f3d528bbd0bf4384703f2f','fd7a:115c:a1e0::6,100.64.0.6','user4','user4',2,'oidc',NULL,0,'2023-09-12 22:58:03.464908+00:00','2023-09-12 22:58:03.37758+00:00','2023-09-12 22:58:08.958716+00:00','{"IPNVersion":"1.48.1-t528f95da6-gc4e4acad7","BackendLogID":"5feae6bec74c6b933912936cfe4647f220d31d4aae9595838e0d5ab93c6ae277","OS":"macOS","OSVersion":"13.5.2","Package":"IPNExtension","DeviceModel":"MacBookPro18,1","Hostname":"user4","NoLogsNoSupport":true,"Machine":"arm64","GoArch":"arm64","GoVersion":"go1.21.0","Services":[{"Proto":"peerapi6","Port":64551},{"Proto":"peerapi4","Port":61927},{"Proto":"peerapi-dns-proxy","Port":1}],"NetInfo":{"MappingVariesByDestIP":false,"HairPinning":false,"WorkingIPv6":false,"OSHasIPv6":true,"WorkingUDP":true,"WorkingICMPv4":false,"UPnP":false,"PMP":false,"PCP":false,"PreferredDERP":2,"DERPLatency":{"10-v4":0.021871917,"17-v4":0.072667291,"2-v4":0.010047084}},"Userspace":false,"UserspaceRouter":true}','["67.58.239.134:41641","192.168.2.205:41641"]','2023-08-24 06:16:01.898323+00:00','2023-09-12 22:58:08.961416+00:00',NULL);
INSERT INTO machines VALUES(18,'d1b2d75439d096b762a8c197377a37c7e771edd51f2a2146114af94756afa696','2da1fa2a8beeed09aede703c44b045bdb21a8819e505b91ed54b66599a3d61e4','37ad3823ffdada188c1710388f1cd242646e66a60d7554f38e069d8df90b064f','fd7a:115c:a1e0::7,100.64.0.7','user7','user7',3,'oidc',NULL,0,'2023-09-14 03:45:00.450227+00:00','2023-09-14 03:44:59.144507+00:00','2023-09-13 22:23:33.608107+00:00','{"IPNVersion":"1.48.1-t528f95da6-gc4e4acad7","BackendLogID":"fdcd2df9a10448a038e3afbdd166762d8917c2f10f4d49c2d257c2269f7a3ef3","OS":"macOS","OSVersion":"13.5.2","Package":"IPNExtension","DeviceModel":"MacBookPro16,1","Hostname":"user7","NoLogsNoSupport":true,"Machine":"x86_64","GoArch":"amd64","GoArchVar":"v1","GoVersion":"go1.21.0","Services":[{"Proto":"peerapi-dns-proxy","Port":1}],"NetInfo":{"MappingVariesByDestIP":false,"HairPinning":false,"WorkingIPv6":false,"OSHasIPv6":true,"WorkingUDP":true,"WorkingICMPv4":false,"UPnP":true,"PMP":false,"PCP":false,"PreferredDERP":13,"DERPLatency":{"1-v4":0.106408989,"10-v4":0.03490791,"11-v4":0.175664039,"12-v4":0.025765898,"13-v4":0.006238122,"14-v4":0.113346949,"16-v4":0.047132419,"17-v4":0.034994123,"18-v4":0.117520649,"19-v4":0.114357219,"2-v4":0.031949238,"20-v4":0.186615346,"21-v4":0.035247054,"22-v4":0.130433232,"23-v4":0.219779149,"24-v4":0.077523355,"3-v4":0.195639797,"4-v4":0.123427047,"5-v4":0.172791876,"6-v4":0.249922387,"7-v4":0.11796353,"8-v4":0.108542864,"9-v4":0.025837496}},"Userspace":false,"UserspaceRouter":true}','["8.36.226.139:41641","192.168.5.49:41641"]','2023-09-12 17:26:45.871277+00:00','2023-09-14 03:45:00.451656+00:00',NULL);
INSERT INTO machines VALUES(19,'0509c7634a68d962a11eb677b0914303e626af043ec1fe4e12c2dc5d45516cb8','5ba0a0384cffe3faf0a050ad8c5bd73a508faa63441b0fb8502c57313a4c523f','12d047ca5a667e2f4a02ac77994c3b6bd85359efa3810df372c0aad3a576a018','fd7a:115c:a1e0::8,100.64.0.8','user2','user2',2,'oidc','null',0,'2024-07-05 23:25:37.618298+00:00','2024-07-05 23:25:37.386862+00:00','2024-07-06 23:07:22.092685+00:00','{"IPNVersion":"1.68.2-tc79c500c7","BackendLogID":"047f3d6f49ca7c0990ff0084cb14f3aa3b8c41d40e4979ae7626d267bf8bca73","OS":"macOS","Package":"tailscaled","Hostname":"user2","Machine":"arm64","GoArch":"arm64","GoVersion":"go1.22.4","Services":[{"Proto":"peerapi-dns-proxy","Port":1}],"Userspace":false,"UserspaceRouter":true}','["156.47.240.192:61820","192.168.2.205:61820"]','2024-07-05 23:07:20.301108+00:00','2024-07-06 23:07:22.101717+00:00',NULL);
CREATE TABLE `kvs` (`key` text,`value` text);
INSERT INTO kvs VALUES('db_version','1');
CREATE TABLE `pre_auth_key_acl_tags` (`id` integer,`pre_auth_key_id` integer,`tag` text,PRIMARY KEY (`id`));
INSERT INTO pre_auth_key_acl_tags VALUES(1,1,'tag:routers-general');
INSERT INTO pre_auth_key_acl_tags VALUES(2,2,'tag:routers-general');
CREATE TABLE `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,PRIMARY KEY (`id`));
INSERT INTO pre_auth_keys VALUES(1,'832bf4265e26f5a5d4ea3593f652ed0df64cf9250f70ee23',1,'t','t','t','2023-08-08 01:52:38.951578+00:00','2033-08-05 01:52:38.949719+00:00');
INSERT INTO pre_auth_keys VALUES(2,'c304da0964e5ff7b299a6426b413ad729b898bc2c2d829aa',1,'f','f','t','2023-08-09 07:12:47.593913+00:00','2023-08-09 08:12:47.591239+00:00');
CREATE TABLE `routes` (`id` integer,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,`machine_id` integer,`prefix` text,`advertised` numeric,`enabled` numeric,`is_primary` numeric,PRIMARY KEY (`id`));
INSERT INTO routes VALUES(1,'2023-08-08 03:37:36.017468+00:00','2023-08-08 03:37:36.031681+00:00',NULL,1,'0.0.0.0/0',1,1,0);
INSERT INTO routes VALUES(2,'2023-08-08 03:37:36.021527+00:00','2023-08-08 03:37:36.035791+00:00',NULL,1,'::/0',1,1,0);
INSERT INTO routes VALUES(3,'2023-08-08 04:30:41.584823+00:00','2023-08-08 04:30:41.597683+00:00',NULL,3,'0.0.0.0/0',1,1,0);
INSERT INTO routes VALUES(4,'2023-08-08 04:30:41.589517+00:00','2023-08-08 04:30:41.601622+00:00',NULL,3,'::/0',1,1,0);
INSERT INTO routes VALUES(7,'2023-08-08 15:23:37.871901+00:00','2023-08-08 15:23:37.883309+00:00',NULL,5,'0.0.0.0/0',1,1,0);
INSERT INTO routes VALUES(8,'2023-08-08 15:23:37.874743+00:00','2023-08-08 15:23:37.886933+00:00',NULL,5,'::/0',1,1,0);
INSERT INTO routes VALUES(9,'2023-08-09 02:32:42.366585+00:00','2023-08-09 02:32:42.377397+00:00',NULL,6,'0.0.0.0/0',1,1,0);
INSERT INTO routes VALUES(10,'2023-08-09 02:32:42.368994+00:00','2023-08-09 02:32:42.37993+00:00',NULL,6,'::/0',1,1,0);
INSERT INTO routes VALUES(11,'2023-08-09 02:32:42.370746+00:00','2023-08-09 02:32:42.370746+00:00',NULL,6,'10.0.0.0/8',1,0,0);
INSERT INTO routes VALUES(12,'2023-08-09 02:55:13.294542+00:00','2023-08-09 02:55:13.307086+00:00',NULL,7,'0.0.0.0/0',1,1,0);
INSERT INTO routes VALUES(13,'2023-08-09 02:55:13.297551+00:00','2023-08-09 02:55:13.310197+00:00',NULL,7,'::/0',1,1,0);
INSERT INTO routes VALUES(14,'2023-08-09 02:55:13.299975+00:00','2023-08-09 02:55:13.299975+00:00',NULL,7,'10.0.0.0/8',1,0,0);
INSERT INTO routes VALUES(89,'2023-08-09 05:10:16.439999+00:00','2023-08-09 05:10:16.455326+00:00',NULL,9,'0.0.0.0/0',1,1,0);
INSERT INTO routes VALUES(90,'2023-08-09 05:10:16.445257+00:00','2023-08-09 05:10:16.458885+00:00',NULL,9,'::/0',1,1,0);
INSERT INTO routes VALUES(91,'2023-08-09 05:10:16.448348+00:00','2023-08-09 06:18:14.219819+00:00',NULL,9,'10.0.0.0/8',1,1,0);
INSERT INTO routes VALUES(166,'2023-08-09 06:18:09.248571+00:00','2023-08-09 06:18:09.262669+00:00',NULL,11,'0.0.0.0/0',1,1,0);
INSERT INTO routes VALUES(167,'2023-08-09 06:18:09.251732+00:00','2023-08-09 06:18:09.266107+00:00',NULL,11,'::/0',1,1,0);
INSERT INTO routes VALUES(168,'2023-08-09 06:18:09.253883+00:00','2023-08-09 06:18:14.222585+00:00',NULL,11,'10.0.0.0/8',1,1,1);
INSERT INTO routes VALUES(169,'2023-08-09 06:34:33.350442+00:00','2023-08-09 06:34:33.361231+00:00',NULL,12,'0.0.0.0/0',1,1,0);
INSERT INTO routes VALUES(170,'2023-08-09 06:34:33.352935+00:00','2023-08-09 06:34:33.364731+00:00',NULL,12,'::/0',1,1,0);
INSERT INTO routes VALUES(171,'2023-08-09 06:34:33.354735+00:00','2023-08-09 06:34:33.354735+00:00',NULL,12,'10.0.0.0/8',1,0,0);
INSERT INTO routes VALUES(172,'2023-08-09 07:25:28.459499+00:00','2023-08-09 07:25:28.459499+00:00',NULL,13,'10.0.0.0/8',1,0,0);
INSERT INTO routes VALUES(173,'2023-08-09 07:25:28.465389+00:00','2023-08-09 07:25:28.506247+00:00',NULL,13,'0.0.0.0/0',1,1,0);
INSERT INTO routes VALUES(174,'2023-08-09 07:25:28.473006+00:00','2023-08-09 07:25:28.51642+00:00',NULL,13,'::/0',1,1,0);
INSERT INTO routes VALUES(175,'2023-08-11 22:09:28.25414+00:00','2023-08-11 22:09:30.021129+00:00',NULL,13,'10.18.80.2/32',1,1,1);
CREATE TABLE IF NOT EXISTS "users" (`id` integer,`created_at` datetime,`updated_at` datetime,`deleted_at` datetime,`name` text UNIQUE,PRIMARY KEY (`id`));
INSERT INTO users VALUES(1,'2023-08-08 01:46:05.562873+00:00','2023-08-08 01:46:05.562873+00:00',NULL,'routers');
INSERT INTO users VALUES(2,'2023-08-08 03:42:32.218269+00:00','2023-08-08 03:42:32.218269+00:00',NULL,'user2');
INSERT INTO users VALUES(3,'2023-08-10 21:11:29.386521+00:00','2023-08-10 21:11:29.386521+00:00',NULL,'user3');
INSERT INTO users VALUES(4,'2023-08-10 23:58:34.343848+00:00','2023-08-10 23:58:34.343848+00:00',NULL,'user4');
COMMIT;
