535 lines
18 KiB
Go
535 lines
18 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|||
|
|
|
||
|
|
package dock
|
||
|
|
|
||
|
|
import (
|
||
|
|
"bj_power_wms/ent/predicate"
|
||
|
|
|
||
|
|
"entgo.io/ent/dialect/sql"
|
||
|
|
)
|
||
|
|
|
||
|
|
// ID filters vertices based on their ID field.
|
||
|
|
func ID(id int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDEQ applies the EQ predicate on the ID field.
|
||
|
|
func IDEQ(id int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
||
|
|
func IDNEQ(id int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDIn applies the In predicate on the ID field.
|
||
|
|
func IDIn(ids ...int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldIn(FieldID, ids...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
||
|
|
func IDNotIn(ids ...int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNotIn(FieldID, ids...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDGT applies the GT predicate on the ID field.
|
||
|
|
func IDGT(id int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGT(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDGTE applies the GTE predicate on the ID field.
|
||
|
|
func IDGTE(id int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGTE(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDLT applies the LT predicate on the ID field.
|
||
|
|
func IDLT(id int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLT(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDLTE applies the LTE predicate on the ID field.
|
||
|
|
func IDLTE(id int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLTE(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCode applies equality check predicate on the "dock_code" field. It's identical to DockCodeEQ.
|
||
|
|
func DockCode(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
||
|
|
func Name(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockType applies equality check predicate on the "dock_type" field. It's identical to DockTypeEQ.
|
||
|
|
func DockType(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNo applies equality check predicate on the "station_no" field. It's identical to StationNoEQ.
|
||
|
|
func StationNo(v int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// HasPallet applies equality check predicate on the "has_pallet" field. It's identical to HasPalletEQ.
|
||
|
|
func HasPallet(v bool) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldHasPallet, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRef applies equality check predicate on the "pallet_ref" field. It's identical to PalletRefEQ.
|
||
|
|
func PalletRef(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||
|
|
func Status(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||
|
|
func CreatedAt(v int64) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeEQ applies the EQ predicate on the "dock_code" field.
|
||
|
|
func DockCodeEQ(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeNEQ applies the NEQ predicate on the "dock_code" field.
|
||
|
|
func DockCodeNEQ(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNEQ(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeIn applies the In predicate on the "dock_code" field.
|
||
|
|
func DockCodeIn(vs ...string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldIn(FieldDockCode, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeNotIn applies the NotIn predicate on the "dock_code" field.
|
||
|
|
func DockCodeNotIn(vs ...string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNotIn(FieldDockCode, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeGT applies the GT predicate on the "dock_code" field.
|
||
|
|
func DockCodeGT(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGT(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeGTE applies the GTE predicate on the "dock_code" field.
|
||
|
|
func DockCodeGTE(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGTE(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeLT applies the LT predicate on the "dock_code" field.
|
||
|
|
func DockCodeLT(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLT(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeLTE applies the LTE predicate on the "dock_code" field.
|
||
|
|
func DockCodeLTE(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLTE(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeContains applies the Contains predicate on the "dock_code" field.
|
||
|
|
func DockCodeContains(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldContains(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeHasPrefix applies the HasPrefix predicate on the "dock_code" field.
|
||
|
|
func DockCodeHasPrefix(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldHasPrefix(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeHasSuffix applies the HasSuffix predicate on the "dock_code" field.
|
||
|
|
func DockCodeHasSuffix(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldHasSuffix(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeEqualFold applies the EqualFold predicate on the "dock_code" field.
|
||
|
|
func DockCodeEqualFold(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEqualFold(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockCodeContainsFold applies the ContainsFold predicate on the "dock_code" field.
|
||
|
|
func DockCodeContainsFold(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldContainsFold(FieldDockCode, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
||
|
|
func NameEQ(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
||
|
|
func NameNEQ(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNEQ(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameIn applies the In predicate on the "name" field.
|
||
|
|
func NameIn(vs ...string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldIn(FieldName, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
||
|
|
func NameNotIn(vs ...string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNotIn(FieldName, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameGT applies the GT predicate on the "name" field.
|
||
|
|
func NameGT(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGT(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
||
|
|
func NameGTE(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGTE(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameLT applies the LT predicate on the "name" field.
|
||
|
|
func NameLT(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLT(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
||
|
|
func NameLTE(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLTE(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameContains applies the Contains predicate on the "name" field.
|
||
|
|
func NameContains(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldContains(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
||
|
|
func NameHasPrefix(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldHasPrefix(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
||
|
|
func NameHasSuffix(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldHasSuffix(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
||
|
|
func NameEqualFold(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEqualFold(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
||
|
|
func NameContainsFold(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldContainsFold(FieldName, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeEQ applies the EQ predicate on the "dock_type" field.
|
||
|
|
func DockTypeEQ(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeNEQ applies the NEQ predicate on the "dock_type" field.
|
||
|
|
func DockTypeNEQ(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNEQ(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeIn applies the In predicate on the "dock_type" field.
|
||
|
|
func DockTypeIn(vs ...string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldIn(FieldDockType, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeNotIn applies the NotIn predicate on the "dock_type" field.
|
||
|
|
func DockTypeNotIn(vs ...string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNotIn(FieldDockType, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeGT applies the GT predicate on the "dock_type" field.
|
||
|
|
func DockTypeGT(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGT(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeGTE applies the GTE predicate on the "dock_type" field.
|
||
|
|
func DockTypeGTE(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGTE(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeLT applies the LT predicate on the "dock_type" field.
|
||
|
|
func DockTypeLT(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLT(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeLTE applies the LTE predicate on the "dock_type" field.
|
||
|
|
func DockTypeLTE(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLTE(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeContains applies the Contains predicate on the "dock_type" field.
|
||
|
|
func DockTypeContains(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldContains(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeHasPrefix applies the HasPrefix predicate on the "dock_type" field.
|
||
|
|
func DockTypeHasPrefix(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldHasPrefix(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeHasSuffix applies the HasSuffix predicate on the "dock_type" field.
|
||
|
|
func DockTypeHasSuffix(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldHasSuffix(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeEqualFold applies the EqualFold predicate on the "dock_type" field.
|
||
|
|
func DockTypeEqualFold(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEqualFold(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// DockTypeContainsFold applies the ContainsFold predicate on the "dock_type" field.
|
||
|
|
func DockTypeContainsFold(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldContainsFold(FieldDockType, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoEQ applies the EQ predicate on the "station_no" field.
|
||
|
|
func StationNoEQ(v int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoNEQ applies the NEQ predicate on the "station_no" field.
|
||
|
|
func StationNoNEQ(v int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoIn applies the In predicate on the "station_no" field.
|
||
|
|
func StationNoIn(vs ...int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldIn(FieldStationNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoNotIn applies the NotIn predicate on the "station_no" field.
|
||
|
|
func StationNoNotIn(vs ...int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNotIn(FieldStationNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoGT applies the GT predicate on the "station_no" field.
|
||
|
|
func StationNoGT(v int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGT(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoGTE applies the GTE predicate on the "station_no" field.
|
||
|
|
func StationNoGTE(v int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGTE(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoLT applies the LT predicate on the "station_no" field.
|
||
|
|
func StationNoLT(v int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLT(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoLTE applies the LTE predicate on the "station_no" field.
|
||
|
|
func StationNoLTE(v int) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLTE(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// HasPalletEQ applies the EQ predicate on the "has_pallet" field.
|
||
|
|
func HasPalletEQ(v bool) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldHasPallet, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// HasPalletNEQ applies the NEQ predicate on the "has_pallet" field.
|
||
|
|
func HasPalletNEQ(v bool) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNEQ(FieldHasPallet, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefEQ applies the EQ predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefEQ(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefNEQ applies the NEQ predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefNEQ(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNEQ(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefIn applies the In predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefIn(vs ...string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldIn(FieldPalletRef, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefNotIn applies the NotIn predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefNotIn(vs ...string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNotIn(FieldPalletRef, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefGT applies the GT predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefGT(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGT(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefGTE applies the GTE predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefGTE(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGTE(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefLT applies the LT predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefLT(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLT(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefLTE applies the LTE predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefLTE(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLTE(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefContains applies the Contains predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefContains(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldContains(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefHasPrefix applies the HasPrefix predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefHasPrefix(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldHasPrefix(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefHasSuffix applies the HasSuffix predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefHasSuffix(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldHasSuffix(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefIsNil applies the IsNil predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefIsNil() predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldIsNull(FieldPalletRef))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefNotNil applies the NotNil predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefNotNil() predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNotNull(FieldPalletRef))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefEqualFold applies the EqualFold predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefEqualFold(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEqualFold(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PalletRefContainsFold applies the ContainsFold predicate on the "pallet_ref" field.
|
||
|
|
func PalletRefContainsFold(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldContainsFold(FieldPalletRef, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusEQ applies the EQ predicate on the "status" field.
|
||
|
|
func StatusEQ(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||
|
|
func StatusNEQ(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNEQ(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusIn applies the In predicate on the "status" field.
|
||
|
|
func StatusIn(vs ...string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldIn(FieldStatus, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||
|
|
func StatusNotIn(vs ...string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNotIn(FieldStatus, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusGT applies the GT predicate on the "status" field.
|
||
|
|
func StatusGT(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGT(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusGTE applies the GTE predicate on the "status" field.
|
||
|
|
func StatusGTE(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGTE(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusLT applies the LT predicate on the "status" field.
|
||
|
|
func StatusLT(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLT(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusLTE applies the LTE predicate on the "status" field.
|
||
|
|
func StatusLTE(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLTE(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusContains applies the Contains predicate on the "status" field.
|
||
|
|
func StatusContains(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldContains(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||
|
|
func StatusHasPrefix(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldHasPrefix(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||
|
|
func StatusHasSuffix(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldHasSuffix(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||
|
|
func StatusEqualFold(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEqualFold(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||
|
|
func StatusContainsFold(v string) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldContainsFold(FieldStatus, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||
|
|
func CreatedAtEQ(v int64) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldEQ(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||
|
|
func CreatedAtNEQ(v int64) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNEQ(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||
|
|
func CreatedAtIn(vs ...int64) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldIn(FieldCreatedAt, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||
|
|
func CreatedAtNotIn(vs ...int64) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||
|
|
func CreatedAtGT(v int64) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGT(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||
|
|
func CreatedAtGTE(v int64) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldGTE(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||
|
|
func CreatedAtLT(v int64) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLT(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||
|
|
func CreatedAtLTE(v int64) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.FieldLTE(FieldCreatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// And groups predicates with the AND operator between them.
|
||
|
|
func And(predicates ...predicate.Dock) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.AndPredicates(predicates...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Or groups predicates with the OR operator between them.
|
||
|
|
func Or(predicates ...predicate.Dock) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.OrPredicates(predicates...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Not applies the not operator on the given predicate.
|
||
|
|
func Not(p predicate.Dock) predicate.Dock {
|
||
|
|
return predicate.Dock(sql.NotPredicates(p))
|
||
|
|
}
|