feat(db): add idempotency keys table

This commit is contained in:
kk10
2026-10-17 11:23:21 +03:00
parent dc79ef5e1f
commit e919fea56e
4 changed files with 166 additions and 0 deletions
+10
View File
@@ -21,6 +21,16 @@ type ChatMember struct {
UserID uuid.UUID
}
type IdempotencyKey struct {
UserID uuid.UUID
Method string
Path string
Key string
RequestHash string
MessageID uuid.UUID
CreatedAt time.Time
}
type Message struct {
ID uuid.UUID
ChatID uuid.UUID