db

package
v0.0.0-...-3910e7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Currency

type Currency struct {
	Id        uuid.UUID `json:"id" db:"id"`
	Name      string    `json:"name" db:"name"`
	Symbol    string    `json:"symbol" db:"symbol"`
	Url       string    `json:"url" db:"url"`
	SortOrder uint64    `json:"sort_order" db:"sort_order"`
	Active    bool      `json:"active" db:"active"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	CreatedBy uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy uuid.UUID `db:"updated_by" json:"updated_by"`
}

type CurrencyFilter

type CurrencyFilter struct {
	Ids  *[]uuid.UUID `json:"ids"`
	Urls *[]string    `json:"urls"`

	Active *bool   `json:"active"`
	Search *string `json:"search"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type DefaultTagTypes

type DefaultTagTypes struct {
	TagTypes    *map[uuid.UUID]TagType
	TagOrder    *map[uuid.UUID]uint64
	TagTypesIds *[]uuid.UUID
}

type Error

type Error struct {
	Id         uuid.UUID `json:"id"`
	Type       string    `json:"type"`
	Message    string    `json:"message"`
	DevMessage string    `json:"dev_message"`
	Field      string    `json:"field"`
	Code       string    `json:"code"`
	CreatedAt  time.Time `db:"created_at" json:"created_at"`
	CreatedBy  uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt  time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy  uuid.UUID `db:"updated_by" json:"updated_by"`
}

type ErrorFilter

type ErrorFilter struct {
	Ids    *[]uuid.UUID `json:"ids"`
	Codes  *[]string    `json:"codes"`
	Active *bool        `json:"active"`
	Type   *string      `json:"type"`
	Search *string      `json:"search"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type File

type File struct {
	Id        uuid.UUID `json:"id"`
	Name      string    `json:"name"`
	Url       string    `json:"url"`
	SortOrder uint64    `json:"sort_order"`
	Active    bool      `json:"active"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	CreatedBy uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy uuid.UUID `db:"updated_by" json:"updated_by"`
}

type FileFilter

type FileFilter struct {
	Ids  *[]uuid.UUID `json:"ids"`
	Urls *[]string    `json:"urls"`

	Active *bool   `json:"active"`
	Search *string `json:"search"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type Folder

type Folder struct {
	Id        uuid.UUID `json:"id"`
	Name      string    `json:"name"`
	Url       string    `json:"url"`
	ParentID  string    `json:"parent_id"`
	SortOrder uint64    `json:"sort_order"`
	Active    bool      `json:"active"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	CreatedBy uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy uuid.UUID `db:"updated_by" json:"updated_by"`
}

type FolderFilter

type FolderFilter struct {
	Ids  *[]uuid.UUID `json:"ids"`
	Urls *[]string    `json:"urls"`

	Active *bool   `json:"active"`
	Search *string `json:"search"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type Image

type Image struct {
	Id uuid.UUID `db:"id"`

	FileName  string `db:"filename"`
	Extension string `db:"extension"`

	IsCompressed bool      `db:"is_compressed"`
	IsWebp       bool      `db:"is_webp"`
	FolderId     uuid.UUID `db:"folder_id"`
	SortOrder    uint64    `db:"sort_order"`

	Title     string  `db:"title"`
	AltText   string  `db:"alt_text"`
	CopyRight string  `db:"copyright"`
	Creator   string  `db:"creator"`
	Rating    float32 `db:"rating"`

	OriginPath string `db:"origin_path"`

	CreatedAt time.Time `db:"created_at"`
	CreatedBy uuid.UUID `db:"created_by"`
	UpdatedAt time.Time `db:"updated_at"`
	UpdatedBy uuid.UUID `db:"updated_by"`
}

type ImageCompression

type ImageCompression struct {
	Ids         *[]uuid.UUID `json:"id"`
	FileName    *string      `json:"file_name"`
	Title       *string      `json:"title"`
	AltText     *string      `json:"alt_text"`
	CopyRight   *string      `json:"copy_right"`
	Creator     *string      `json:"creator"`
	Rating      *float32     `json:"rating"`
	Compression *uint        `json:"compression"`
}

type ImageFilter

type ImageFilter struct {
	Ids *[]uuid.UUID `json:"id"`

	IsWebp *bool   `json:"is_webp"`
	Search *string `json:"search"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type Price

type Price struct {
	Id          uuid.UUID `json:"id" db:"id"`
	ProductID   uuid.UUID `json:"product_id" db:"product_id"`
	PriceTypeID uuid.UUID `json:"price_type_id" db:"price_type_id"`
	CurrencyID  uuid.UUID `json:"currency_id" db:"currency_id"`
	WarehouseID uuid.UUID `json:"warehouse_id" db:"warehouse_id"`
	StoreID     uuid.UUID `json:"store_id" db:"store_id"`

	Price     float64 `json:"price" db:"price"`
	SortOrder uint64  `json:"sort_order" db:"sort_order"`
	Active    bool    `json:"active" db:"active"`

	StartDate time.Time `json:"start_date" db:"start_date"`
	EndDate   time.Time `json:"end_date" db:"end_date"`

	CreatedAt time.Time `db:"created_at" json:"created_at"`
	CreatedBy uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy uuid.UUID `db:"updated_by" json:"updated_by"`
}

type PriceFilter

type PriceFilter struct {
	Ids *[]uuid.UUID `json:"id"`

	ProductIds   *[]uuid.UUID `json:"product_id"`
	PriceTypeIds *[]uuid.UUID `json:"price_type_id"`
	CurrencyIds  *[]uuid.UUID `json:"currency_id"`
	WarehouseIds *[]uuid.UUID `json:"warehouse_id"`
	StoreIds     *[]uuid.UUID `json:"store_id"`

	Active *bool   `json:"active"`
	Search *string `json:"search"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type PriceType

type PriceType struct {
	Id        uuid.UUID `json:"id" db:"id"`
	Name      string    `json:"name" db:"name"`
	Url       string    `json:"url" db:"url"`
	SortOrder uint64    `json:"sort_order" db:"sort_order"`
	IsPublic  bool      `json:"is_public" db:"is_public"`
	Active    bool      `json:"active" db:"active"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	CreatedBy uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy uuid.UUID `db:"updated_by" json:"updated_by"`
}

type PriceTypeFilter

type PriceTypeFilter struct {
	Ids  *[]uuid.UUID `json:"ids"`
	Urls *[]string    `json:"urls"`

	Active   *bool   `json:"active"`
	IsPublic *bool   `json:"prime"`
	Search   *string `json:"search"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type ProductImage

type ProductImage struct {
	Id        uuid.UUID `db:"id" json:"id"`
	ProductId uuid.UUID `db:"product_id" json:"product_id"`
	ImageId   uuid.UUID `db:"image_id" json:"image_id"`
	Type      string    `db:"type" json:"type"`
	SortOrder uint64    `db:"sort_order" json:"sort_order"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	CreatedBy uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy uuid.UUID `db:"updated_by" json:"updated_by"`
}

type ProductImageFilter

type ProductImageFilter struct {
	Ids        *[]uuid.UUID `json:"id"`
	ProductIds *[]uuid.UUID `json:"product_id"`
	ImageIds   *[]uuid.UUID `json:"image_id"`

	Type   *[]string `json:"type"`
	Search *string   `json:"search"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type ProductInfo

type ProductInfo struct {
	Id                    uuid.UUID `json:"id" db:"id"`
	Sku                   string    `json:"sku" db:"sku"`
	Brand                 string    `json:"brand" db:"brand"`
	Name                  string    `json:"name" db:"name"`
	ShortDescription      string    `json:"short_description" db:"short_description"`
	Description           string    `json:"description" db:"description"`
	SortOrder             uint64    `json:"sort_order" db:"sort_order"`
	Url                   string    `json:"url" db:"url"`
	IsTaxable             bool      `json:"is_taxable" db:"is_taxable"`
	IsTrackStock          bool      `json:"is_track_stock" db:"is_track_stock"`
	ShippingWeight        uint64    `json:"shipping_weight" db:"shipping_weight"`
	ShippingWidth         uint64    `json:"shipping_width" db:"shipping_width"`
	ShippingHeight        uint64    `json:"shipping_height" db:"shipping_height"`
	ShippingLength        uint64    `json:"shipping_length" db:"shipping_length"`
	SeoTitle              string    `json:"seo_title" db:"seo_title"`
	SeoDescription        string    `json:"seo_description" db:"seo_description"`
	GTIN                  string    `json:"gtin" db:"gtin"`
	GoogleProductCategory string    `json:"google_product_category" db:"google_product_category"`
	GoogleProductType     string    `json:"google_product_type" db:"google_product_type"`
	CreatedAt             time.Time `db:"created_at" json:"created_at"`
	CreatedBy             uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt             time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy             uuid.UUID `db:"updated_by" json:"updated_by"`
}

type ProductInfoFilter

type ProductInfoFilter struct {
	Ids    *[]uuid.UUID `json:"ids"`
	Urls   *[]string    `json:"urls"`
	Skus   *[]string    `json:"skus"`
	Brands *[]string    `json:"brands"`

	Active *bool   `json:"active"`
	Search *string `json:"search"`

	DataPagination *entity.DataPagination
	DataConfig     *entity.DataConfig
}

type Shop

type Shop struct {
	Id               uuid.UUID
	Name             uuid.UUID
	SeoTitle         uuid.UUID
	ShortDescription uuid.UUID
	Description      uuid.UUID
	Url              string
	ImageId          uuid.UUID
	HoverImageId     uuid.UUID
	Page             uint64
	PerPage          uint64
	SortOrder        int
	Active           bool
	Prime            bool
	CreatedAt        time.Time
	CreatedBy        uuid.UUID
	UpdatedAt        time.Time
	UpdatedBy        uuid.UUID
}

type ShopFilter

type ShopFilter struct {
	Ids  *[]uuid.UUID `json:"ids"`
	Urls *[]string    `json:"urls"`

	Active *bool   `json:"active"`
	Prime  *bool   `json:"prime"`
	Search *string `json:"search"`

	DataPagination *entity.DataPagination
	DataConfig     *entity.DataConfig
}

type StockQuantity

type StockQuantity struct {
	Id          uuid.UUID `json:"id" db:"id"`
	ProductId   uuid.UUID `json:"product_id" db:"product_id"`
	Quality     int64     `json:"quality" db:"quantity"`
	WarehouseId uuid.UUID `json:"warehouse_id" db:"warehouse_id"`

	CreatedAt time.Time `db:"created_at" json:"created_at"`
	CreatedBy uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy uuid.UUID `db:"updated_by" json:"updated_by"`
}

type StockQuantityFilter

type StockQuantityFilter struct {
	Ids          *[]uuid.UUID `json:"ids"`
	ProductIds   *[]uuid.UUID `json:"product_ids"`
	WarehouseIds *[]uuid.UUID `json:"warehouse_id"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type Store

type Store struct {
	Id           uuid.UUID `json:"id" db:"id"`
	Name         string    `json:"name" db:"name"`
	Url          string    `json:"url" db:"url"`
	Abbreviation string    `json:"abbreviation" db:"abbreviation"`
	SortOrder    uint64    `json:"sort_order" db:"sort_order"`
	Active       bool      `json:"active" db:"active"`
	AddressLine1 string    `json:"address_line1" db:"address_line_1"`
	AddressLine2 string    `json:"address_line2" db:"address_line_2"`
	City         string    `json:"city" db:"city"`
	State        string    `json:"state" db:"state"`
	ZipCode      string    `json:"zip" db:"zip"`
	Country      string    `json:"country" db:"country"`
	WebSite      string    `json:"web_site" db:"web_site"`
	Phone        string    `json:"phone" db:"phone"`
	Email        string    `json:"email" db:"email"`
	CurrencyUrl  string    `json:"currency_url" db:"currency_url"`
	CreatedAt    time.Time `db:"created_at" json:"created_at"`
	CreatedBy    uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt    time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy    uuid.UUID `db:"updated_by" json:"updated_by"`
}

type StoreFilter

type StoreFilter struct {
	Ids           *[]uuid.UUID `json:"ids"`
	Urls          *[]string    `json:"urls"`
	Abbreviations *[]string    `json:"abbreviations"`

	Active *bool   `json:"active"`
	Search *string `json:"search"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type Tag

type Tag struct {
	Id          uuid.UUID `json:"id" db:"id"`
	ProductId   uuid.UUID `json:"product_id" db:"product_id"`
	TagTypeId   uuid.UUID `json:"tag_type_id" db:"tag_type_id"`
	TagSelectId uuid.UUID `json:"tag_select_id" db:"tag_select_id"`
	Value       string    `json:"value" db:"value"`
	Active      bool      `json:"active" db:"active"`
	SortOrder   uint64    `json:"sort_order" db:"sort_order"`
	CreatedAt   time.Time `db:"created_at" json:"created_at"`
	CreatedBy   uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt   time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy   uuid.UUID `db:"updated_by" json:"updated_by"`
}

type TagFilter

type TagFilter struct {
	Ids          *[]uuid.UUID `json:"ids"`
	ProductIds   *[]uuid.UUID `json:"product_ids"`
	TagTypeIds   *[]uuid.UUID `json:"tag_type_ids"`
	TagSelectIds *[]uuid.UUID `json:"tag_select_ids"`

	Active *bool   `json:"active"`
	Search *string `json:"search"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type TagSelect

type TagSelect struct {
	Id               uuid.UUID `json:"id" db:"id"`
	TagTypeId        uuid.UUID `json:"tag_type_id" db:"tag_type_id"`
	Name             string    `json:"name" db:"name"`
	Url              string    `json:"url" db:"url"`
	ShortDescription string    `json:"short_description" db:"short_description"`
	Description      string    `json:"description" db:"description"`
	Active           bool      `json:"active" db:"active"`
	SortOrder        uint64    `json:"sort_order" db:"sort_order"`
	CreatedAt        time.Time `db:"created_at" json:"created_at"`
	CreatedBy        uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt        time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy        uuid.UUID `db:"updated_by" json:"updated_by"`
}

type TagSelectFilter

type TagSelectFilter struct {
	Ids        *[]uuid.UUID `json:"ids"`
	Urls       *[]string    `json:"urls"`
	TagTypeIds *[]uuid.UUID `json:"tag_type_ids"`
	Active     *bool        `json:"active"`
	Search     *string      `json:"search"`
	OrderBy    *string      `json:"order_by"`
	OrderDir   *string      `json:"order_dir"`
	Page       *uint64      `json:"page"`
	PerPage    *uint64      `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type TagType

type TagType struct {
	Id               uuid.UUID `json:"id" db:"id"`
	Name             string    `json:"name" db:"name"`
	Url              string    `json:"url" db:"url"`
	ShortDescription string    `json:"short_description" db:"short_description"`
	Description      string    `json:"description" db:"description"`
	Required         bool      `json:"required" db:"required"`
	Active           bool      `json:"active" db:"active"`
	Prime            bool      `json:"prime" db:"prime"`
	ListItem         bool      `json:"list_item" db:"list_item"`
	Filter           bool      `json:"filter" db:"filter"`
	SortOrder        uint64    `json:"sort_order" db:"sort_order"`
	Type             string    `json:"type" db:"type"`
	Prefix           string    `json:"prefix" db:"prefix"`
	Suffix           string    `json:"suffix" db:"suffix"`
	CreatedAt        time.Time `db:"created_at" json:"created_at"`
	CreatedBy        uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt        time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy        uuid.UUID `db:"updated_by" json:"updated_by"`
}

type TagTypeFilter

type TagTypeFilter struct {
	Ids  *[]uuid.UUID
	Urls *[]string

	Required *bool
	Active   *bool
	Prime    *bool
	ListItem *bool
	Filter   *bool
	Type     *string

	Search *string

	OrderBy  *string
	OrderDir *string
	Page     *uint64
	PerPage  *uint64

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

type Text

type Text struct {
	Id       uuid.UUID
	Language string

	Source    string
	SubSource string
	SourceId  uuid.UUID

	Text   string
	Active bool

	CreatedAt time.Time
	CreatedBy uuid.UUID
	UpdatedAt time.Time
	UpdatedBy uuid.UUID
}

type TextFilter

type TextFilter struct {
	Ids      *[]uuid.UUID
	Language *string

	Source    *string
	SubSource *string
	SourceId  *[]uuid.UUID

	Active *bool
	Search *string

	DataPagination *entity.DataPagination
	DataConfig     *entity.DataConfig
}

type Warehouse

type Warehouse struct {
	Id           uuid.UUID `json:"id" db:"id"`
	Name         string    `json:"name" db:"name"`
	Url          string    `json:"url" db:"url"`
	Abbreviation string    `json:"abbreviation" db:"abbreviation"`
	SortOrder    uint64    `json:"sort_order" db:"sort_order"`
	Active       bool      `json:"active" db:"active"`
	AddressLine1 string    `json:"address_line1" db:"address_line_1"`
	AddressLine2 string    `json:"address_line2" db:"address_line_2"`
	City         string    `json:"city" db:"city"`
	State        string    `json:"state" db:"state"`
	ZipCode      string    `json:"zip_code" db:"zip_code"`
	Country      string    `json:"country" db:"country"`
	WebSite      string    `json:"web_site" db:"web_site"`
	Phone        string    `json:"phone" db:"phone"`
	Email        string    `json:"email" db:"email"`
	CreatedAt    time.Time `db:"created_at" json:"created_at"`
	CreatedBy    uuid.UUID `db:"created_by" json:"created_by"`
	UpdatedAt    time.Time `db:"updated_at" json:"updated_at"`
	UpdatedBy    uuid.UUID `db:"updated_by" json:"updated_by"`
}

type WarehouseFilter

type WarehouseFilter struct {
	Ids           *[]uuid.UUID `json:"ids"`
	Urls          *[]string    `json:"urls"`
	Abbreviations *[]string    `json:"abbreviations"`

	Active *bool   `json:"active"`
	Prime  *bool   `json:"prime"`
	Search *string `json:"search"`

	OrderBy  *string `json:"order_by"`
	OrderDir *string `json:"order_dir"`
	Page     *uint64 `json:"page"`
	PerPage  *uint64 `json:"per_page"`

	Count *uint64 `json:"count"`

	IsIdsOnly      *bool `json:"is_ids_only"`
	IsCount        *bool `json:"is_count"`
	IsUpdateFilter *bool `json:"is_update_filter"`
	IsKeepIdsOrder *bool `json:"is_keep_ids_order"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL