27 lines
636 B
Plaintext
27 lines
636 B
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "sqlite"
|
|
url = "file:./dev.db"
|
|
}
|
|
|
|
model ApiKey {
|
|
id String @id @default(cuid())
|
|
name String
|
|
key String @unique
|
|
description String?
|
|
isValid Boolean @default(true)
|
|
balance Float? // 当前余额
|
|
// 删除 currency 字段
|
|
lastChecked DateTime @default(now())
|
|
checkCount Int @default(0)
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
|
|
@@map("api_keys")
|
|
} |