feat: opt web ux

This commit is contained in:
2026-04-02 22:10:24 +08:00
parent 143b1e8c4b
commit 35511eb877
16 changed files with 1251 additions and 383 deletions

View File

@@ -8,15 +8,18 @@ datasource db {
}
model User {
id String @id @default(uuid())
email String @unique
passwordHash String?
name String
avatarUrl String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
oauthAccounts OAuthAccount[]
projects Project[]
id String @id @default(uuid())
email String @unique
passwordHash String?
name String
avatarUrl String?
apiKeyHash String?
apiKeyEncrypted String?
apiKeyPrefix String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
oauthAccounts OAuthAccount[]
projects Project[]
}
model OAuthAccount {
@@ -38,7 +41,6 @@ model Project {
baseUrl String?
openApiSpec Json
openApiVersion String
apiKeyHash String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
user User @relation(fields: [userId], references: [id], onDelete: Cascade)