21 lines
593 B
Go
21 lines
593 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
// CallLogEntry represents a single event in the BBS call log.
|
|
//
|
|
// This replaces the Append_Stat() calls from the original TAG-BBS
|
|
// (STAT_LOGON, STAT_LOGOFF, STAT_SHUTDOWN, etc.) which wrote to the
|
|
// binary Tag.Stat file. Our version stores structured events in SQLite
|
|
// for easy querying and display.
|
|
type CallLogEntry struct {
|
|
ID int64
|
|
Event string // "login", "logoff", "newuser", "kicked", etc.
|
|
UserID int64
|
|
UserName string
|
|
Node int
|
|
RemoteAddr string
|
|
Detail string // Disconnect reason, etc.
|
|
CreatedAt time.Time
|
|
}
|