feat: add map-password API with DB model and admin endpoint
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user