user.go 358 B

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