Skip to content

Feature/user inventory system#320

Merged
9 commits merged intoSaboStudios:mainfrom
jhayniffy:feature/user-inventory-system
Feb 26, 2026
Merged

Feature/user inventory system#320
9 commits merged intoSaboStudios:mainfrom
jhayniffy:feature/user-inventory-system

Conversation

@jhayniffy
Copy link
Contributor

@jhayniffy jhayniffy commented Feb 26, 2026

This PR introduces the User Inventory System, enabling users to manage and track their owned items efficiently.

closes #255

- Add UserSuspension entity to track suspension history with reasons
- Implement suspend/unsuspend endpoints (admin only)
- Add SuspensionCheckMiddleware to block suspended users on all requests
- Update auth service to prevent suspended users from logging in
- Log all suspension actions via AdminLogsService
- Log suspended user login attempts to console
- Add suspension history endpoint
- Include unit tests for suspension functionality
- Add database migration for user_suspensions table
- Add user_inventory table with indexes and foreign keys
- Create InventoryService with add, get, use, and cleanup methods
- Integrate inventory with purchase flow
- Integrate inventory with gift acceptance
- Add inventory API endpoints (GET /shop/inventory, /shop/inventory/active)
- Add comprehensive test suite for inventory service
- Support quantity tracking and optional expiration
@aji70 aji70 closed this pull request by merging all changes into SaboStudios:main in b4d11a9 Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BE] Gift Acceptance and Claim System

2 participants