Files
bj_power/bj_power_wms/ent/packagebox/where.go
T
SunYF bb22148625 feat: 完成区域管理、装箱功能优化与接口标准化
- 新增区域状态字段与增删改查接口,支持区域启用/停用
- 重构实体字段JSON标签为camelCase格式统一接口规范
- 优化入库、盘点、装箱流程的交互与提示文案
- 新增装箱管理功能,支持合同号关联与装箱编辑
- 调整前端菜单与帮助文档适配业务场景变更
2026-09-01 13:49:44 +08:00

685 lines
25 KiB
Go

// Code generated by ent, DO NOT EDIT.
package packagebox
import (
"bj_power_wms/ent/predicate"
"entgo.io/ent/dialect/sql"
)
// ID filters vertices based on their ID field.
func ID(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldID, id))
}
// BoxNo applies equality check predicate on the "box_no" field. It's identical to BoxNoEQ.
func BoxNo(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldBoxNo, v))
}
// SnList applies equality check predicate on the "sn_list" field. It's identical to SnListEQ.
func SnList(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldSnList, v))
}
// MaterialCode applies equality check predicate on the "material_code" field. It's identical to MaterialCodeEQ.
func MaterialCode(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldMaterialCode, v))
}
// Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func Quantity(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldQuantity, v))
}
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
func Operator(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldOperator, v))
}
// ContractNo applies equality check predicate on the "contract_no" field. It's identical to ContractNoEQ.
func ContractNo(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldContractNo, v))
}
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func Remark(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldRemark, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldUpdatedAt, v))
}
// BoxNoEQ applies the EQ predicate on the "box_no" field.
func BoxNoEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldBoxNo, v))
}
// BoxNoNEQ applies the NEQ predicate on the "box_no" field.
func BoxNoNEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldBoxNo, v))
}
// BoxNoIn applies the In predicate on the "box_no" field.
func BoxNoIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldBoxNo, vs...))
}
// BoxNoNotIn applies the NotIn predicate on the "box_no" field.
func BoxNoNotIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldBoxNo, vs...))
}
// BoxNoGT applies the GT predicate on the "box_no" field.
func BoxNoGT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldBoxNo, v))
}
// BoxNoGTE applies the GTE predicate on the "box_no" field.
func BoxNoGTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldBoxNo, v))
}
// BoxNoLT applies the LT predicate on the "box_no" field.
func BoxNoLT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldBoxNo, v))
}
// BoxNoLTE applies the LTE predicate on the "box_no" field.
func BoxNoLTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldBoxNo, v))
}
// BoxNoContains applies the Contains predicate on the "box_no" field.
func BoxNoContains(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContains(FieldBoxNo, v))
}
// BoxNoHasPrefix applies the HasPrefix predicate on the "box_no" field.
func BoxNoHasPrefix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasPrefix(FieldBoxNo, v))
}
// BoxNoHasSuffix applies the HasSuffix predicate on the "box_no" field.
func BoxNoHasSuffix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasSuffix(FieldBoxNo, v))
}
// BoxNoEqualFold applies the EqualFold predicate on the "box_no" field.
func BoxNoEqualFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEqualFold(FieldBoxNo, v))
}
// BoxNoContainsFold applies the ContainsFold predicate on the "box_no" field.
func BoxNoContainsFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContainsFold(FieldBoxNo, v))
}
// SnListEQ applies the EQ predicate on the "sn_list" field.
func SnListEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldSnList, v))
}
// SnListNEQ applies the NEQ predicate on the "sn_list" field.
func SnListNEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldSnList, v))
}
// SnListIn applies the In predicate on the "sn_list" field.
func SnListIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldSnList, vs...))
}
// SnListNotIn applies the NotIn predicate on the "sn_list" field.
func SnListNotIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldSnList, vs...))
}
// SnListGT applies the GT predicate on the "sn_list" field.
func SnListGT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldSnList, v))
}
// SnListGTE applies the GTE predicate on the "sn_list" field.
func SnListGTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldSnList, v))
}
// SnListLT applies the LT predicate on the "sn_list" field.
func SnListLT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldSnList, v))
}
// SnListLTE applies the LTE predicate on the "sn_list" field.
func SnListLTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldSnList, v))
}
// SnListContains applies the Contains predicate on the "sn_list" field.
func SnListContains(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContains(FieldSnList, v))
}
// SnListHasPrefix applies the HasPrefix predicate on the "sn_list" field.
func SnListHasPrefix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasPrefix(FieldSnList, v))
}
// SnListHasSuffix applies the HasSuffix predicate on the "sn_list" field.
func SnListHasSuffix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasSuffix(FieldSnList, v))
}
// SnListIsNil applies the IsNil predicate on the "sn_list" field.
func SnListIsNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldIsNull(FieldSnList))
}
// SnListNotNil applies the NotNil predicate on the "sn_list" field.
func SnListNotNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotNull(FieldSnList))
}
// SnListEqualFold applies the EqualFold predicate on the "sn_list" field.
func SnListEqualFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEqualFold(FieldSnList, v))
}
// SnListContainsFold applies the ContainsFold predicate on the "sn_list" field.
func SnListContainsFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContainsFold(FieldSnList, v))
}
// MaterialCodeEQ applies the EQ predicate on the "material_code" field.
func MaterialCodeEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldMaterialCode, v))
}
// MaterialCodeNEQ applies the NEQ predicate on the "material_code" field.
func MaterialCodeNEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldMaterialCode, v))
}
// MaterialCodeIn applies the In predicate on the "material_code" field.
func MaterialCodeIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldMaterialCode, vs...))
}
// MaterialCodeNotIn applies the NotIn predicate on the "material_code" field.
func MaterialCodeNotIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldMaterialCode, vs...))
}
// MaterialCodeGT applies the GT predicate on the "material_code" field.
func MaterialCodeGT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldMaterialCode, v))
}
// MaterialCodeGTE applies the GTE predicate on the "material_code" field.
func MaterialCodeGTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldMaterialCode, v))
}
// MaterialCodeLT applies the LT predicate on the "material_code" field.
func MaterialCodeLT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldMaterialCode, v))
}
// MaterialCodeLTE applies the LTE predicate on the "material_code" field.
func MaterialCodeLTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldMaterialCode, v))
}
// MaterialCodeContains applies the Contains predicate on the "material_code" field.
func MaterialCodeContains(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContains(FieldMaterialCode, v))
}
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "material_code" field.
func MaterialCodeHasPrefix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasPrefix(FieldMaterialCode, v))
}
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "material_code" field.
func MaterialCodeHasSuffix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasSuffix(FieldMaterialCode, v))
}
// MaterialCodeIsNil applies the IsNil predicate on the "material_code" field.
func MaterialCodeIsNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldIsNull(FieldMaterialCode))
}
// MaterialCodeNotNil applies the NotNil predicate on the "material_code" field.
func MaterialCodeNotNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotNull(FieldMaterialCode))
}
// MaterialCodeEqualFold applies the EqualFold predicate on the "material_code" field.
func MaterialCodeEqualFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEqualFold(FieldMaterialCode, v))
}
// MaterialCodeContainsFold applies the ContainsFold predicate on the "material_code" field.
func MaterialCodeContainsFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContainsFold(FieldMaterialCode, v))
}
// QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityEQ(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldQuantity, v))
}
// QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNEQ(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldQuantity, v))
}
// QuantityIn applies the In predicate on the "quantity" field.
func QuantityIn(vs ...int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldQuantity, vs...))
}
// QuantityNotIn applies the NotIn predicate on the "quantity" field.
func QuantityNotIn(vs ...int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldQuantity, vs...))
}
// QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGT(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldQuantity, v))
}
// QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityGTE(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldQuantity, v))
}
// QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLT(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldQuantity, v))
}
// QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityLTE(v int) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldQuantity, v))
}
// OperatorEQ applies the EQ predicate on the "operator" field.
func OperatorEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldOperator, v))
}
// OperatorNEQ applies the NEQ predicate on the "operator" field.
func OperatorNEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldOperator, v))
}
// OperatorIn applies the In predicate on the "operator" field.
func OperatorIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldOperator, vs...))
}
// OperatorNotIn applies the NotIn predicate on the "operator" field.
func OperatorNotIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldOperator, vs...))
}
// OperatorGT applies the GT predicate on the "operator" field.
func OperatorGT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldOperator, v))
}
// OperatorGTE applies the GTE predicate on the "operator" field.
func OperatorGTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldOperator, v))
}
// OperatorLT applies the LT predicate on the "operator" field.
func OperatorLT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldOperator, v))
}
// OperatorLTE applies the LTE predicate on the "operator" field.
func OperatorLTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldOperator, v))
}
// OperatorContains applies the Contains predicate on the "operator" field.
func OperatorContains(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContains(FieldOperator, v))
}
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
func OperatorHasPrefix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasPrefix(FieldOperator, v))
}
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
func OperatorHasSuffix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasSuffix(FieldOperator, v))
}
// OperatorIsNil applies the IsNil predicate on the "operator" field.
func OperatorIsNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldIsNull(FieldOperator))
}
// OperatorNotNil applies the NotNil predicate on the "operator" field.
func OperatorNotNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotNull(FieldOperator))
}
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
func OperatorEqualFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEqualFold(FieldOperator, v))
}
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
func OperatorContainsFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContainsFold(FieldOperator, v))
}
// ContractNoEQ applies the EQ predicate on the "contract_no" field.
func ContractNoEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldContractNo, v))
}
// ContractNoNEQ applies the NEQ predicate on the "contract_no" field.
func ContractNoNEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldContractNo, v))
}
// ContractNoIn applies the In predicate on the "contract_no" field.
func ContractNoIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldContractNo, vs...))
}
// ContractNoNotIn applies the NotIn predicate on the "contract_no" field.
func ContractNoNotIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldContractNo, vs...))
}
// ContractNoGT applies the GT predicate on the "contract_no" field.
func ContractNoGT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldContractNo, v))
}
// ContractNoGTE applies the GTE predicate on the "contract_no" field.
func ContractNoGTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldContractNo, v))
}
// ContractNoLT applies the LT predicate on the "contract_no" field.
func ContractNoLT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldContractNo, v))
}
// ContractNoLTE applies the LTE predicate on the "contract_no" field.
func ContractNoLTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldContractNo, v))
}
// ContractNoContains applies the Contains predicate on the "contract_no" field.
func ContractNoContains(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContains(FieldContractNo, v))
}
// ContractNoHasPrefix applies the HasPrefix predicate on the "contract_no" field.
func ContractNoHasPrefix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasPrefix(FieldContractNo, v))
}
// ContractNoHasSuffix applies the HasSuffix predicate on the "contract_no" field.
func ContractNoHasSuffix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasSuffix(FieldContractNo, v))
}
// ContractNoIsNil applies the IsNil predicate on the "contract_no" field.
func ContractNoIsNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldIsNull(FieldContractNo))
}
// ContractNoNotNil applies the NotNil predicate on the "contract_no" field.
func ContractNoNotNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotNull(FieldContractNo))
}
// ContractNoEqualFold applies the EqualFold predicate on the "contract_no" field.
func ContractNoEqualFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEqualFold(FieldContractNo, v))
}
// ContractNoContainsFold applies the ContainsFold predicate on the "contract_no" field.
func ContractNoContainsFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContainsFold(FieldContractNo, v))
}
// RemarkEQ applies the EQ predicate on the "remark" field.
func RemarkEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldRemark, v))
}
// RemarkNEQ applies the NEQ predicate on the "remark" field.
func RemarkNEQ(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldRemark, v))
}
// RemarkIn applies the In predicate on the "remark" field.
func RemarkIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldRemark, vs...))
}
// RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotIn(vs ...string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldRemark, vs...))
}
// RemarkGT applies the GT predicate on the "remark" field.
func RemarkGT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldRemark, v))
}
// RemarkGTE applies the GTE predicate on the "remark" field.
func RemarkGTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldRemark, v))
}
// RemarkLT applies the LT predicate on the "remark" field.
func RemarkLT(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldRemark, v))
}
// RemarkLTE applies the LTE predicate on the "remark" field.
func RemarkLTE(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldRemark, v))
}
// RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContains(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContains(FieldRemark, v))
}
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasPrefix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasPrefix(FieldRemark, v))
}
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkHasSuffix(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldHasSuffix(FieldRemark, v))
}
// RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkIsNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldIsNull(FieldRemark))
}
// RemarkNotNil applies the NotNil predicate on the "remark" field.
func RemarkNotNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotNull(FieldRemark))
}
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkEqualFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEqualFold(FieldRemark, v))
}
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkContainsFold(v string) predicate.PackageBox {
return predicate.PackageBox(sql.FieldContainsFold(FieldRemark, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v int64) predicate.PackageBox {
return predicate.PackageBox(sql.FieldLTE(FieldUpdatedAt, v))
}
// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtIsNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldIsNull(FieldUpdatedAt))
}
// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedAtNotNil() predicate.PackageBox {
return predicate.PackageBox(sql.FieldNotNull(FieldUpdatedAt))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.PackageBox) predicate.PackageBox {
return predicate.PackageBox(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.PackageBox) predicate.PackageBox {
return predicate.PackageBox(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.PackageBox) predicate.PackageBox {
return predicate.PackageBox(sql.NotPredicates(p))
}