user.go
 1package models
 2
 3import (
 4	"database/sql"
 5	"time"
 6)
 7
 8// User represents a user.
 9type User struct {
10	ID        int64          `db:"id"`
11	Username  string         `db:"username"`
12	Admin     bool           `db:"admin"`
13	Password  sql.NullString `db:"password"`
14	CreatedAt time.Time      `db:"created_at"`
15	UpdatedAt time.Time      `db:"updated_at"`
16}