13 lines
388 B
Go
13 lines
388 B
Go
package identity
|
|
|
|
import "time"
|
|
|
|
type User struct {
|
|
ID string `db:"id" json:"id"`
|
|
Email string `db:"email" json:"email"`
|
|
Username string `db:"username" json:"username"`
|
|
Password string `db:"password" json:"password"`
|
|
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
|
UpdatedAt *time.Time `db:"updated_at,omitempty" json:"updated_at,omitempty"`
|
|
}
|