Files
bj_power/bj_power_wms/ent/attachment/where.go
T
SunYF 4a5e2d7bac feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能
- 增加工单工程编号三级归属字段
- 新增物料安全库存与缺货预警
- 新增附件管理、退库单管理模块
- 优化生产看板展示逻辑与前端页面文案
- 清理冗余的工艺路线相关代码与备份文件
2026-09-15 16:37:39 +08:00

600 lines
22 KiB
Go

// Code generated by ent, DO NOT EDIT.
package attachment
import (
"bj_power_wms/ent/predicate"
"entgo.io/ent/dialect/sql"
)
// ID filters vertices based on their ID field.
func ID(id int) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldID, id))
}
// BizType applies equality check predicate on the "biz_type" field. It's identical to BizTypeEQ.
func BizType(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldBizType, v))
}
// BizID applies equality check predicate on the "biz_id" field. It's identical to BizIDEQ.
func BizID(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldBizID, v))
}
// FileName applies equality check predicate on the "file_name" field. It's identical to FileNameEQ.
func FileName(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFileName, v))
}
// FilePath applies equality check predicate on the "file_path" field. It's identical to FilePathEQ.
func FilePath(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFilePath, v))
}
// FileSize applies equality check predicate on the "file_size" field. It's identical to FileSizeEQ.
func FileSize(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFileSize, v))
}
// MimeType applies equality check predicate on the "mime_type" field. It's identical to MimeTypeEQ.
func MimeType(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldMimeType, v))
}
// UploadedBy applies equality check predicate on the "uploaded_by" field. It's identical to UploadedByEQ.
func UploadedBy(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldUploadedBy, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldCreatedAt, v))
}
// BizTypeEQ applies the EQ predicate on the "biz_type" field.
func BizTypeEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldBizType, v))
}
// BizTypeNEQ applies the NEQ predicate on the "biz_type" field.
func BizTypeNEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldBizType, v))
}
// BizTypeIn applies the In predicate on the "biz_type" field.
func BizTypeIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldBizType, vs...))
}
// BizTypeNotIn applies the NotIn predicate on the "biz_type" field.
func BizTypeNotIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldBizType, vs...))
}
// BizTypeGT applies the GT predicate on the "biz_type" field.
func BizTypeGT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldBizType, v))
}
// BizTypeGTE applies the GTE predicate on the "biz_type" field.
func BizTypeGTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldBizType, v))
}
// BizTypeLT applies the LT predicate on the "biz_type" field.
func BizTypeLT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldBizType, v))
}
// BizTypeLTE applies the LTE predicate on the "biz_type" field.
func BizTypeLTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldBizType, v))
}
// BizTypeContains applies the Contains predicate on the "biz_type" field.
func BizTypeContains(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContains(FieldBizType, v))
}
// BizTypeHasPrefix applies the HasPrefix predicate on the "biz_type" field.
func BizTypeHasPrefix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasPrefix(FieldBizType, v))
}
// BizTypeHasSuffix applies the HasSuffix predicate on the "biz_type" field.
func BizTypeHasSuffix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasSuffix(FieldBizType, v))
}
// BizTypeEqualFold applies the EqualFold predicate on the "biz_type" field.
func BizTypeEqualFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEqualFold(FieldBizType, v))
}
// BizTypeContainsFold applies the ContainsFold predicate on the "biz_type" field.
func BizTypeContainsFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContainsFold(FieldBizType, v))
}
// BizIDEQ applies the EQ predicate on the "biz_id" field.
func BizIDEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldBizID, v))
}
// BizIDNEQ applies the NEQ predicate on the "biz_id" field.
func BizIDNEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldBizID, v))
}
// BizIDIn applies the In predicate on the "biz_id" field.
func BizIDIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldBizID, vs...))
}
// BizIDNotIn applies the NotIn predicate on the "biz_id" field.
func BizIDNotIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldBizID, vs...))
}
// BizIDGT applies the GT predicate on the "biz_id" field.
func BizIDGT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldBizID, v))
}
// BizIDGTE applies the GTE predicate on the "biz_id" field.
func BizIDGTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldBizID, v))
}
// BizIDLT applies the LT predicate on the "biz_id" field.
func BizIDLT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldBizID, v))
}
// BizIDLTE applies the LTE predicate on the "biz_id" field.
func BizIDLTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldBizID, v))
}
// BizIDContains applies the Contains predicate on the "biz_id" field.
func BizIDContains(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContains(FieldBizID, v))
}
// BizIDHasPrefix applies the HasPrefix predicate on the "biz_id" field.
func BizIDHasPrefix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasPrefix(FieldBizID, v))
}
// BizIDHasSuffix applies the HasSuffix predicate on the "biz_id" field.
func BizIDHasSuffix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasSuffix(FieldBizID, v))
}
// BizIDEqualFold applies the EqualFold predicate on the "biz_id" field.
func BizIDEqualFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEqualFold(FieldBizID, v))
}
// BizIDContainsFold applies the ContainsFold predicate on the "biz_id" field.
func BizIDContainsFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContainsFold(FieldBizID, v))
}
// FileNameEQ applies the EQ predicate on the "file_name" field.
func FileNameEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFileName, v))
}
// FileNameNEQ applies the NEQ predicate on the "file_name" field.
func FileNameNEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldFileName, v))
}
// FileNameIn applies the In predicate on the "file_name" field.
func FileNameIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldFileName, vs...))
}
// FileNameNotIn applies the NotIn predicate on the "file_name" field.
func FileNameNotIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldFileName, vs...))
}
// FileNameGT applies the GT predicate on the "file_name" field.
func FileNameGT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldFileName, v))
}
// FileNameGTE applies the GTE predicate on the "file_name" field.
func FileNameGTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldFileName, v))
}
// FileNameLT applies the LT predicate on the "file_name" field.
func FileNameLT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldFileName, v))
}
// FileNameLTE applies the LTE predicate on the "file_name" field.
func FileNameLTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldFileName, v))
}
// FileNameContains applies the Contains predicate on the "file_name" field.
func FileNameContains(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContains(FieldFileName, v))
}
// FileNameHasPrefix applies the HasPrefix predicate on the "file_name" field.
func FileNameHasPrefix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasPrefix(FieldFileName, v))
}
// FileNameHasSuffix applies the HasSuffix predicate on the "file_name" field.
func FileNameHasSuffix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasSuffix(FieldFileName, v))
}
// FileNameEqualFold applies the EqualFold predicate on the "file_name" field.
func FileNameEqualFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEqualFold(FieldFileName, v))
}
// FileNameContainsFold applies the ContainsFold predicate on the "file_name" field.
func FileNameContainsFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContainsFold(FieldFileName, v))
}
// FilePathEQ applies the EQ predicate on the "file_path" field.
func FilePathEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFilePath, v))
}
// FilePathNEQ applies the NEQ predicate on the "file_path" field.
func FilePathNEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldFilePath, v))
}
// FilePathIn applies the In predicate on the "file_path" field.
func FilePathIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldFilePath, vs...))
}
// FilePathNotIn applies the NotIn predicate on the "file_path" field.
func FilePathNotIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldFilePath, vs...))
}
// FilePathGT applies the GT predicate on the "file_path" field.
func FilePathGT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldFilePath, v))
}
// FilePathGTE applies the GTE predicate on the "file_path" field.
func FilePathGTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldFilePath, v))
}
// FilePathLT applies the LT predicate on the "file_path" field.
func FilePathLT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldFilePath, v))
}
// FilePathLTE applies the LTE predicate on the "file_path" field.
func FilePathLTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldFilePath, v))
}
// FilePathContains applies the Contains predicate on the "file_path" field.
func FilePathContains(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContains(FieldFilePath, v))
}
// FilePathHasPrefix applies the HasPrefix predicate on the "file_path" field.
func FilePathHasPrefix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasPrefix(FieldFilePath, v))
}
// FilePathHasSuffix applies the HasSuffix predicate on the "file_path" field.
func FilePathHasSuffix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasSuffix(FieldFilePath, v))
}
// FilePathEqualFold applies the EqualFold predicate on the "file_path" field.
func FilePathEqualFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEqualFold(FieldFilePath, v))
}
// FilePathContainsFold applies the ContainsFold predicate on the "file_path" field.
func FilePathContainsFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContainsFold(FieldFilePath, v))
}
// FileSizeEQ applies the EQ predicate on the "file_size" field.
func FileSizeEQ(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFileSize, v))
}
// FileSizeNEQ applies the NEQ predicate on the "file_size" field.
func FileSizeNEQ(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldFileSize, v))
}
// FileSizeIn applies the In predicate on the "file_size" field.
func FileSizeIn(vs ...int64) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldFileSize, vs...))
}
// FileSizeNotIn applies the NotIn predicate on the "file_size" field.
func FileSizeNotIn(vs ...int64) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldFileSize, vs...))
}
// FileSizeGT applies the GT predicate on the "file_size" field.
func FileSizeGT(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldFileSize, v))
}
// FileSizeGTE applies the GTE predicate on the "file_size" field.
func FileSizeGTE(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldFileSize, v))
}
// FileSizeLT applies the LT predicate on the "file_size" field.
func FileSizeLT(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldFileSize, v))
}
// FileSizeLTE applies the LTE predicate on the "file_size" field.
func FileSizeLTE(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldFileSize, v))
}
// MimeTypeEQ applies the EQ predicate on the "mime_type" field.
func MimeTypeEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldMimeType, v))
}
// MimeTypeNEQ applies the NEQ predicate on the "mime_type" field.
func MimeTypeNEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldMimeType, v))
}
// MimeTypeIn applies the In predicate on the "mime_type" field.
func MimeTypeIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldMimeType, vs...))
}
// MimeTypeNotIn applies the NotIn predicate on the "mime_type" field.
func MimeTypeNotIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldMimeType, vs...))
}
// MimeTypeGT applies the GT predicate on the "mime_type" field.
func MimeTypeGT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldMimeType, v))
}
// MimeTypeGTE applies the GTE predicate on the "mime_type" field.
func MimeTypeGTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldMimeType, v))
}
// MimeTypeLT applies the LT predicate on the "mime_type" field.
func MimeTypeLT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldMimeType, v))
}
// MimeTypeLTE applies the LTE predicate on the "mime_type" field.
func MimeTypeLTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldMimeType, v))
}
// MimeTypeContains applies the Contains predicate on the "mime_type" field.
func MimeTypeContains(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContains(FieldMimeType, v))
}
// MimeTypeHasPrefix applies the HasPrefix predicate on the "mime_type" field.
func MimeTypeHasPrefix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasPrefix(FieldMimeType, v))
}
// MimeTypeHasSuffix applies the HasSuffix predicate on the "mime_type" field.
func MimeTypeHasSuffix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasSuffix(FieldMimeType, v))
}
// MimeTypeIsNil applies the IsNil predicate on the "mime_type" field.
func MimeTypeIsNil() predicate.Attachment {
return predicate.Attachment(sql.FieldIsNull(FieldMimeType))
}
// MimeTypeNotNil applies the NotNil predicate on the "mime_type" field.
func MimeTypeNotNil() predicate.Attachment {
return predicate.Attachment(sql.FieldNotNull(FieldMimeType))
}
// MimeTypeEqualFold applies the EqualFold predicate on the "mime_type" field.
func MimeTypeEqualFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEqualFold(FieldMimeType, v))
}
// MimeTypeContainsFold applies the ContainsFold predicate on the "mime_type" field.
func MimeTypeContainsFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContainsFold(FieldMimeType, v))
}
// UploadedByEQ applies the EQ predicate on the "uploaded_by" field.
func UploadedByEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldUploadedBy, v))
}
// UploadedByNEQ applies the NEQ predicate on the "uploaded_by" field.
func UploadedByNEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldUploadedBy, v))
}
// UploadedByIn applies the In predicate on the "uploaded_by" field.
func UploadedByIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldUploadedBy, vs...))
}
// UploadedByNotIn applies the NotIn predicate on the "uploaded_by" field.
func UploadedByNotIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldUploadedBy, vs...))
}
// UploadedByGT applies the GT predicate on the "uploaded_by" field.
func UploadedByGT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldUploadedBy, v))
}
// UploadedByGTE applies the GTE predicate on the "uploaded_by" field.
func UploadedByGTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldUploadedBy, v))
}
// UploadedByLT applies the LT predicate on the "uploaded_by" field.
func UploadedByLT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldUploadedBy, v))
}
// UploadedByLTE applies the LTE predicate on the "uploaded_by" field.
func UploadedByLTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldUploadedBy, v))
}
// UploadedByContains applies the Contains predicate on the "uploaded_by" field.
func UploadedByContains(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContains(FieldUploadedBy, v))
}
// UploadedByHasPrefix applies the HasPrefix predicate on the "uploaded_by" field.
func UploadedByHasPrefix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasPrefix(FieldUploadedBy, v))
}
// UploadedByHasSuffix applies the HasSuffix predicate on the "uploaded_by" field.
func UploadedByHasSuffix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasSuffix(FieldUploadedBy, v))
}
// UploadedByIsNil applies the IsNil predicate on the "uploaded_by" field.
func UploadedByIsNil() predicate.Attachment {
return predicate.Attachment(sql.FieldIsNull(FieldUploadedBy))
}
// UploadedByNotNil applies the NotNil predicate on the "uploaded_by" field.
func UploadedByNotNil() predicate.Attachment {
return predicate.Attachment(sql.FieldNotNull(FieldUploadedBy))
}
// UploadedByEqualFold applies the EqualFold predicate on the "uploaded_by" field.
func UploadedByEqualFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEqualFold(FieldUploadedBy, v))
}
// UploadedByContainsFold applies the ContainsFold predicate on the "uploaded_by" field.
func UploadedByContainsFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContainsFold(FieldUploadedBy, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...int64) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...int64) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldCreatedAt, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.Attachment) predicate.Attachment {
return predicate.Attachment(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Attachment) predicate.Attachment {
return predicate.Attachment(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Attachment) predicate.Attachment {
return predicate.Attachment(sql.NotPredicates(p))
}