package model

import (
    "database/sql"
    "time"
)

type Session struct {
    Token string `json:"-" db:"token"`
    UserAgent string `json:"user_agent" db:"user_agent"`
    CreatedAt time.Time `json:"created_at" db:"created_at"`
    ExpiresAt time.Time `json:"-" db:"expires_at"`

    Account *Account `json:"-" db:"-"`
    AttemptAccount *Account `json:"-" db:"-"`
    Message sql.NullString `json:"-" db:"message"`
    Error sql.NullString `json:"-" db:"error"`
}
