Add receive endpoint for megabytes transfered

This commit is contained in:
Owen Schwartz
2024-09-28 23:51:52 -04:00
parent 0d91966609
commit 5a3e1444d1
7 changed files with 82 additions and 6 deletions

View File

@@ -35,6 +35,8 @@ CREATE TABLE `sites` (
`subdomain` text,
`pubKey` text,
`subnet` text,
`bytesIn` integer,
`bytesOut` integer,
FOREIGN KEY (`orgId`) REFERENCES `orgs`(`orgId`) ON UPDATE no action ON DELETE cascade,
FOREIGN KEY (`exitNode`) REFERENCES `exitNodes`(`exitNodeId`) ON UPDATE no action ON DELETE set null
);

View File

@@ -1,7 +1,7 @@
{
"version": "6",
"dialect": "sqlite",
"id": "379ca2f9-068a-4289-8a23-001e7dc269b1",
"id": "8f8a2cda-fb58-438b-bc67-e5c34eda0580",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"exitNodes": {
@@ -224,6 +224,20 @@
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"bytesIn": {
"name": "bytesIn",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"bytesOut": {
"name": "bytesOut",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},

View File

@@ -5,8 +5,8 @@
{
"idx": 0,
"version": "6",
"when": 1727557783608,
"tag": "0000_wealthy_captain_midlands",
"when": 1727577233301,
"tag": "0000_flimsy_shotgun",
"breakpoints": true
}
]