2025-01-20 15:08:01 +00:00
|
|
|
package model
|
|
|
|
|
2025-01-23 00:37:19 +00:00
|
|
|
import (
|
|
|
|
"database/sql"
|
|
|
|
"time"
|
|
|
|
)
|
2025-01-20 15:08:01 +00:00
|
|
|
|
2025-01-23 00:37:19 +00:00
|
|
|
type Session struct {
|
2025-01-26 23:41:35 +00:00
|
|
|
Token string `json:"-" db:"token"`
|
2025-01-20 15:08:01 +00:00
|
|
|
UserAgent string `json:"user_agent" db:"user_agent"`
|
|
|
|
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
2025-01-26 23:41:35 +00:00
|
|
|
ExpiresAt time.Time `json:"-" db:"expires_at"`
|
2025-01-23 00:37:19 +00:00
|
|
|
|
2025-01-26 23:41:35 +00:00
|
|
|
Account *Account `json:"-" db:"-"`
|
|
|
|
AttemptAccount *Account `json:"-" db:"-"`
|
2025-01-23 00:37:19 +00:00
|
|
|
Message sql.NullString `json:"-" db:"message"`
|
|
|
|
Error sql.NullString `json:"-" db:"error"`
|
2025-01-20 15:08:01 +00:00
|
|
|
}
|