place.go 339 B

12345678910111213141516171819202122232425
  1. package models
  2. import (
  3. "database/sql"
  4. "time"
  5. )
  6. type Place struct {
  7. ID int
  8. Title string
  9. ParentID sql.NullInt64
  10. CreatedAt time.Time
  11. UpdatedAt time.Time
  12. }
  13. type AddPlaceRequest struct {
  14. Title string
  15. ParentID sql.NullInt64
  16. }
  17. type UpdatePlaceRequest struct {
  18. ID int
  19. Title string
  20. ParentID sql.NullInt64
  21. }