package validation

type Create struct {
	PhaseId     uint    `json:"phase_id" validate:"required"`
	Name        string  `json:"name" validate:"required_strict,min=3"`
	Description *string `json:"description,omitempty"`
	TimeType    string  `json:"time_type" validate:"required"`
}

type Update struct {
	Name        string  `json:"name" validate:"required_strict,min=3"`
	Description *string `json:"description,omitempty"`
	TimeType    string  `json:"time_type" validate:"required"`
}

type Query struct {
	Page     int    `query:"page" validate:"omitempty,number,min=1,gt=0"`
	Limit    int    `query:"limit" validate:"omitempty,number,min=1,max=100,gt=0"`
	Search   string `query:"search" validate:"omitempty,max=50"`
	PhaseIDs string `query:"phase_ids" validate:"omitempty"`
}
