Files
ocean/user/internal/model/user.go
2025-05-22 19:39:08 +08:00

18 lines
364 B
Go

package model
import (
"database/sql"
"time"
"github.com/lib/pq"
)
type User struct {
UserId string `db:"user_id"`
Username string `db:"username"`
Email sql.NullString `db:"email"`
PasswordHash string `db:"password_hash"`
Roles pq.StringArray `db:"roles"`
CreatedAt time.Time `db:"created_at"`
}