Fix: fix db migrations and add new row viewed
All checks were successful
CI.yml / build (push) Successful in 1m54s

This commit is contained in:
d3m0k1d
2026-01-13 18:22:15 +03:00
parent 5362761b82
commit 0421d9ef40
4 changed files with 14 additions and 16 deletions

View File

@@ -1,15 +1,19 @@
package storage
type LogEntry struct {
Service string
IP string
Path *string
Status *string
Method *string
Reason *string
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 {
IP string
Reason *string
ID int `db:"id"`
IP string `db:"ip"`
Reason *string `db:"reason"`
BannedAt string `db:"banned_at"`
}