my-kaiqiuwang/prisma/migrations
kyuuseiryuu fd8257e194 feat(api): add user location management endpoints and database model
- Added `UserLocation` model to `prisma/schema.prisma` to store user location data including coordinates (point geometry), name, avatar, and bindings to Logto and Kaiqiu users.
- Created new API endpoints under `/api/account/location` to handle location operations:
  - `POST`: Create a new location record for a user.
  - `GET`: Retrieve nearby locations based on latitude and longitude.
  - `PUT`: Update an existing location record, including coordinate updates via spatial index.
  - `DELETE`: Remove a specific location record.
- Integrated the custom spatial operations from `xprisma` DAO to support geospatial queries and updates.
- Updated dependencies to include `@mui/icons-material` (and its peer dependencies like `prop-types` and `react-transition-group` which are implicitly required by the new icon components).
- Implemented `verifyLogtoToken` logic to secure the new endpoints and associate locations with authenticated users.

No breaking changes in API contracts; new endpoints are additive.
2026-03-19 00:29:02 +09:00
..
20260316024219_add_new_fav_table feat: migrate user fav system from session aud to Logto sub 2026-03-16 12:45:12 +09:00
20260317043537_add_event_subs feat(WebSocket & Event System): Add real-time updates and event subscription 2026-03-17 17:26:52 +09:00
20260317152301_add_user_bind_table feat(auth): add Kaiqiu account binding and update WebSocket architecture 2026-03-18 01:18:34 +09:00
20260318045350_add_location_table feat(api): add user location management endpoints and database model 2026-03-19 00:29:02 +09:00
migration_lock.toml feat: implement user favorite player system with Logto sync 2026-03-09 10:16:27 +09:00