relynolli-server/models/filters/db.go

17 lines
435 B
Go
Raw Normal View History

2024-03-23 21:16:41 +03:00
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"`
}