Skip to content

Commit c6ba9eb

Browse files
committed
feat: add multi-account support
1 parent 7d480f3 commit c6ba9eb

32 files changed

Lines changed: 566 additions & 92 deletions

File tree

package-lock.json

Lines changed: 243 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"ollama": "^0.6.3",
5151
"openai": "^6.9.1",
5252
"p-queue": "^9.0.1",
53+
"qrcode": "^1.5.4",
5354
"qrcode-terminal": "^0.12.0",
5455
"redis": "^5.10.0",
5556
"semver": "^7.7.3",
@@ -66,6 +67,7 @@
6667
"@types/he": "^1.2.3",
6768
"@types/node": "^24.0.14",
6869
"@types/npmlog": "^7.0.0",
70+
"@types/qrcode": "^1.5.6",
6971
"@types/qrcode-terminal": "^0.12.2",
7072
"@types/semver": "^7.7.1",
7173
"@types/speedtest-net": "^2.1.5",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- CreateTable
2+
CREATE TABLE `Account` (
3+
`id` INTEGER NOT NULL AUTO_INCREMENT,
4+
`clientId` VARCHAR(191) NOT NULL,
5+
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
6+
`updatedAt` DATETIME(3) NOT NULL,
7+
8+
UNIQUE INDEX `Account_clientId_key`(`clientId`),
9+
PRIMARY KEY (`id`)
10+
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterTable
2+
ALTER TABLE `Account` ADD COLUMN `isRoot` BOOLEAN NOT NULL DEFAULT false;

prisma/schema.prisma

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,11 @@ model Log {
5656
createdAt DateTime @default(now())
5757
updatedAt DateTime @updatedAt
5858
}
59+
60+
model Account {
61+
id Int @id @default(autoincrement())
62+
clientId String @unique
63+
isRoot Boolean @default(false)
64+
createdAt DateTime @default(now())
65+
updatedAt DateTime @updatedAt
66+
}

0 commit comments

Comments
 (0)