Skip to content

feat(states): add UserStates table and repository for persistent states#22

Merged
ZenonEl merged 1 commit into
mainfrom
feat/persistent-states
Mar 28, 2026
Merged

feat(states): add UserStates table and repository for persistent states#22
ZenonEl merged 1 commit into
mainfrom
feat/persistent-states

Conversation

@ZenonEl
Copy link
Copy Markdown
Owner

@ZenonEl ZenonEl commented Mar 28, 2026

Summary

  • Add UserStates table to schema (ChatId, StateName, StateDataJson, CreatedAt, ExpiresAt)
  • Add IUserStateRepository interface with CRUD + cleanup
  • Add SqliteUserStateRepository Dapper implementation with UPSERT
  • Register in DI container

Closes #8

Test plan

  • dotnet build passes (verified)
  • UserStates table created on migration
  • Save/Get/Remove/Cleanup operations work

@ZenonEl ZenonEl merged commit dbc7bd6 into main Mar 28, 2026
1 check passed
@ZenonEl ZenonEl deleted the feat/persistent-states branch March 28, 2026 03:09
@ZenonEl ZenonEl mentioned this pull request Mar 28, 2026
4 tasks
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.

Persistent user states in SQLite

1 participant