feat: add map-password API with DB model and admin endpoint

This commit is contained in:
2026-05-24 16:32:15 +08:00
parent 2c0d6ba2eb
commit cd9fb924d5
7 changed files with 1335 additions and 3 deletions

View File

@@ -280,3 +280,31 @@ model DeviceBinding {
@@unique([userId, installId])
@@map("device_bindings")
}
// ============================================
// 地图密码批次表
// ============================================
model MapPassword {
id String @id @default(uuid())
createdAt DateTime @default(now()) @map("created_at")
maps MapPasswordItem[]
@@map("map_passwords")
}
// ============================================
// 地图密码明细表
// ============================================
model MapPasswordItem {
id String @id @default(uuid())
batchId String @map("batch_id")
mapName String @map("map_name") @db.VarChar(50)
password String @db.VarChar(20)
location String @db.Text
image String @db.VarChar(500)
batch MapPassword @relation(fields: [batchId], references: [id], onDelete: Cascade)
@@map("map_password_items")
}