添加设置模块修复网关信息MAC地址跳转问题,删除冗余的文件和代码

This commit is contained in:
wmp
2025-09-16 18:12:55 +08:00
parent a25ce604f0
commit 3322d6a8e4
11 changed files with 641 additions and 80 deletions

View File

@@ -39,7 +39,6 @@ CREATE TABLE `users` (
`password` varchar(191) NOT NULL,
`phone` varchar(191) NOT NULL,
`updatedAt` datetime(3) NOT NULL,
`verifiedPhone` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
UNIQUE KEY `users_phone_key` (`phone`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

View File

@@ -1,16 +0,0 @@
import { PrismaClient } from '@prisma/client'
declare global {
var cachedPrisma: PrismaClient
}
export let prisma: PrismaClient
if (process.env.NODE_ENV === 'production') {
prisma = new PrismaClient()
} else {
if (!global.cachedPrisma) {
global.cachedPrisma = new PrismaClient()
}
prisma = global.cachedPrisma
}

View File

@@ -124,10 +124,9 @@ model Account {
model User {
id Int @id @default(autoincrement())
phone String @unique
account String @unique
password String
name String?
verifiedPhone Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
sessions Session[]