This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CREATE Proxy config to store proxy in an sqlite database with a list of IPs as JSON in peers column | |
| CREATE TABLE "proxy_config" ( | |
| "id" char(36) DEFAULT (lower(hex(randomblob(4))) || '-' || lower(hex(randomblob(2))) || '-4' || substr(lower(hex(randomblob(2))),2) || '-' || substr('89ab',abs(random()) % 4 + 1, 1) || substr(lower(hex(randomblob(2))),2) || '-' || lower(hex(randomblob(6)))) NOT NULL PRIMARY KEY, | |
| "peers" JSON, | |
| "server" TEXT, | |
| "state" INTEGER, | |
| "ts" DATETIME default current_timestamp, | |
| "ts_mod" DATETIME default current_timestamp | |
| ); |