initial commit
This commit is contained in:
17
user/internal/model/user.go
Normal file
17
user/internal/model/user.go
Normal file
@ -0,0 +1,17 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user