Files
BanForge/internal/storage/models.go
d3m0k1d 0421d9ef40
All checks were successful
CI.yml / build (push) Successful in 1m54s
Fix: fix db migrations and add new row viewed
2026-01-13 18:22:15 +03:00

20 lines
445 B
Go

package storage
type LogEntry struct {
ID int `db:"id"`
Service string `db:"service"`
IP string `db:"ip"`
Path *string `db:"path"`
Status *string `db:"status"`
Method *string `db:"method"`
IsViewed *bool `db:"viewed"`
CreatedAt string `db:"created_at"`
}
type Ban struct {
ID int `db:"id"`
IP string `db:"ip"`
Reason *string `db:"reason"`
BannedAt string `db:"banned_at"`
}