package filters import "github.com/uptrace/bun" type DBFilter struct { bun.BaseModel `bun:"select:api_filter"` Id int64 `bun:"id" json:"id"` Code string `bun:"code" json:"code"` Name string `bun:"name" json:"name"` Values *[]DBFilterValues `bun:"values" json:"values"` } type DBFilterValues struct { Id int64 `json:"id"` Value string `json:"value"` }