user.go 271 B

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