Download server/prisma/schema.prisma from nst1/simplehub: direct link, hf CLI and curl.
- Browser
- Download file 4.53 kB
-
https://huggingface.co/spaces/nst1/simplehub/resolve/main/server/prisma/schema.prisma
- Command line
-
hf download hf://spaces/nst1/simplehub/server/prisma/schema.prisma
-
curl -L -o schema.prisma https://huggingface.co/spaces/nst1/simplehub/resolve/main/server/prisma/schema.prisma
4.53 kB
| generator client { | |
| provider = "prisma-client-js" | |
| binaryTargets = ["native", "debian-openssl-3.0.x", "linux-arm64-openssl-3.0.x", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"] | |
| } | |
| datasource db { | |
| provider = "sqlite" | |
| url = env("DATABASE_URL") | |
| } | |
| model User { | |
| id String | |
| email String | |
| passwordHash String | |
| isAdmin Boolean | |
| createdAt DateTime | |
| } | |
| model Site { | |
| id String | |
| name String | |
| baseUrl String | |
| apiKeyEnc String | |
| apiType String | |
| userId String? | |
| billingUrl String? | |
| billingAuthType String | |
| billingAuthValue String? | |
| proxyUrlEnc String? | |
| billingLimitField String? | |
| billingUsageField String? | |
| unlimitedQuota Boolean | |
| enableCheckIn Boolean | |
| checkInMode String | |
| scheduleCron String? | |
| timezone String | |
| pinned Boolean | |
| excludeFromBatch Boolean | |
| categoryId String? | |
| category Category? | |
| extralink String? | |
| remark String? | |
| sortOrder Int | |
| lastCheckedAt DateTime? | |
| createdAt DateTime | |
| snapshots ModelSnapshot[] | |
| diffs ModelDiff[] | |
| @ | |
| @ | |
| } | |
| model ModelSnapshot { | |
| id String | |
| siteId String | |
| site Site | |
| fetchedAt DateTime | |
| modelsJson String | |
| hash String | |
| rawResponse String? | |
| errorMessage String? | |
| statusCode Int? | |
| responseTime Int? | |
| billingLimit Float? // system_hard_limit_usd from /v1/dashboard/billing/subscription | |
| billingUsage Float? // total_usage * 0.01 from /v1/dashboard/billing/usage | |
| billingError String? // billing查询错误信息(如果有) | |
| checkInSuccess Boolean? // 签到是否成功(null表示未签到) | |
| checkInMessage String? // 签到消息 | |
| checkInQuota Float? // 签到获得的额度 | |
| checkInError String? // 签到错误信息 | |
| diffsFrom ModelDiff[] | |
| diffsTo ModelDiff[] | |
| @ | |
| @ | |
| } | |
| model ModelDiff { | |
| id String | |
| siteId String | |
| site Site | |
| diffAt DateTime | |
| addedJson String | |
| removedJson String | |
| changedJson String | |
| snapshotFromId String? | |
| snapshotFrom ModelSnapshot? | |
| snapshotToId String? | |
| snapshotTo ModelSnapshot? | |
| @ | |
| } | |
| model EmailConfig { | |
| id String | |
| resendApiKeyEnc String | |
| notifyEmails String | |
| enabled Boolean | |
| createdAt DateTime | |
| updatedAt DateTime | |
| } | |
| model ScheduleConfig { | |
| id String | |
| enabled Boolean // 是否启用定时检测 | |
| hour Int // 小时 (0-23) | |
| minute Int // 分钟 (0-59) | |
| timezone String // 时区 | |
| interval Int // 站点间检测间隔(秒) | |
| overrideIndividual Boolean // 是否覆盖站点单独配置 | |
| lastRun DateTime? // 上次运行时间 | |
| createdAt DateTime | |
| updatedAt DateTime | |
| } | |
| model Category { | |
| id String | |
| name String | |
| scheduleCron String? | |
| timezone String | |
| createdAt DateTime | |
| updatedAt DateTime | |
| sites Site[] | |
| } | |