my-kaiqiuwang/prisma/schema.prisma
kyuuseiryuu 2774037012 feat(app): add push notification support and event management logic
- Introduce PermissionControlPanel in UserCenter for managing notification permissions.
- Update Service Worker (sw.ts) to handle background push notifications via Firebase Cloud Messaging.
- Implement EventSubscribeService logic to fetch active events, filter expired ones, and clean up subscriptions.
- Refactor KaiqiuService and parsing utilities to include eventId in event details.
- Remove deprecated ScheduleService and inline sendNotification logic.
- Update utility functions to support new types and notification checks.
- Add VAPI public key configuration and update Firebase exports.
2026-03-24 17:21:50 +09:00

49 lines
966 B
Plaintext

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
generator client {
provider = "prisma-client"
output = "../src/generated/prisma"
}
datasource db {
provider = "mysql"
}
model LogtoUserFav {
logto_uid String
kaiqiu_uid String
@@id([logto_uid, kaiqiu_uid])
}
model EventSubs {
logto_uid String
event_id String
@@id([logto_uid, event_id])
}
model UserBind {
logto_uid String @unique
kaiqiu_uid String
}
model UserLocation {
id Int @id @default(autoincrement())
kaiqiu_uid String?
logto_uid String
name String
avatar String? @db.Text
coords Unsupported("point")
@@index([coords])
@@unique([logto_uid, name])
}
model NotificationToken {
logto_uid String
token String
@@unique([logto_uid, token])
}