service.category/domain/types.go
package domain
import "time"
type Category struct {
// ID is a UUID.
ID string `firestore:"id"`
// Slug is a unique human-readable identifier used in URLs.
Slug string `firestore:"slug"`
// Name is the human readable name of this category.
Name string `firestore:"name"`
// CreatedAt is when this record was inserted.
CreatedAt time.Time `firestore:"created_at"`
// UpdatedAt is when this record was last updated.
UpdatedAt time.Time `firestore:"updated_at"`
}