feat: update user model
This commit is contained in:
parent
11ca2188e4
commit
0e70b70242
2 changed files with 14 additions and 4 deletions
|
|
@ -0,0 +1,9 @@
|
|||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE users ADD COLUMN meta JSONB;
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE users DROP COLUMN meta;
|
||||
-- +goose StatementEnd
|
||||
|
|
@ -10,6 +10,7 @@ type User struct {
|
|||
PendingEmail *string `db:"pending_email"`
|
||||
EmailVerifiedAt *time.Time `db:"email_verified_at"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
Meta *map[string]any `db:"meta"`
|
||||
}
|
||||
|
||||
func (u *User) HasPassword() bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue