Files
aimaren/internal/storage/models.go
T
2025-07-26 17:18:41 -07:00

26 lines
715 B
Go

package storage
import (
"git.pengzhan.dev/aimaren/internal/crawler"
)
// AppState represents the entire state of the application stored in Firestore.
type AppState struct {
Bags map[string]crawler.Bag `firestore:"bags"`
ChatIDs []int64 `firestore:"chat_ids"`
}
// UserState represents the state of all users.
type UserState struct {
Users map[string]ChatState `firestore:"users"`
FreeCode []string `firestore:"free_code"`
}
type ChatState struct {
ChatID int64 `firestore:"chat_id"`
Registered bool `firestore:"registered"`
InviteCode string `firestore:"invite_code"`
CurrentOp string `firestore:"current_operation"`
Context string `firestore:"context"`
}