Update schema to include keys

This commit is contained in:
Owen Schwartz
2024-09-28 15:21:13 -04:00
parent 77d71de990
commit 7bb81af3bb
5 changed files with 98 additions and 40 deletions

View File

@@ -1,7 +1,9 @@
CREATE TABLE `exitNodes` (
`exitNodeId` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`name` text NOT NULL,
`address` text NOT NULL
`address` text NOT NULL,
`privateKey` text,
`listenPort` integer
);
--> statement-breakpoint
CREATE TABLE `orgs` (

View File

@@ -1,7 +1,7 @@
{
"version": "6",
"dialect": "sqlite",
"id": "9b039f4c-6867-4b08-8aa9-bc184c37b910",
"id": "369f669c-f220-4706-9a5c-8a66ab5653b2",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"exitNodes": {
@@ -27,6 +27,20 @@
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"privateKey": {
"name": "privateKey",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"listenPort": {
"name": "listenPort",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},

View File

@@ -5,8 +5,8 @@
{
"idx": 0,
"version": "6",
"when": 1727544220529,
"tag": "0000_short_ulik",
"when": 1727551266674,
"tag": "0000_unique_killraven",
"breakpoints": true
}
]