Files
bj_power/bj_power_wms/ent/attachment/where.go
T
SunYF 62e45b7379 feat: 完成附件存储重构与磁盘监控功能,同步物料档案与入库单规则更新
1.  新增跨平台磁盘空间监控能力,每日7点自动检测附件目录剩余空间,触发阈值告警
2.  重构附件存储方案为年/月/日/文件类型分层结构,统一MES与WMS的附件管理逻辑
3.  对齐物料档案与入库单的质量状态校验规则,仅合格品计入库存与出库
4.  实现入库单作废功能与区域库位的多级父子结构管理
5.  删除物料简称字段,补充规格型号与单位必填项,统一系统数据口径
6.  新增附件中心与磁盘状态查询接口,完善权限控制与操作日志
2026-09-19 10:54:15 +08:00

1060 lines
39 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))
}
// FileType applies equality check predicate on the "file_type" field. It's identical to FileTypeEQ.
func FileType(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFileType, v))
}
// FileExt applies equality check predicate on the "file_ext" field. It's identical to FileExtEQ.
func FileExt(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFileExt, v))
}
// FileMd5 applies equality check predicate on the "file_md5" field. It's identical to FileMd5EQ.
func FileMd5(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFileMd5, 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))
}
// Archived applies equality check predicate on the "archived" field. It's identical to ArchivedEQ.
func Archived(v bool) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldArchived, v))
}
// ArchivedAt applies equality check predicate on the "archived_at" field. It's identical to ArchivedAtEQ.
func ArchivedAt(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldArchivedAt, v))
}
// Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
func Deleted(v bool) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldDeleted, v))
}
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAt(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedBy(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldDeletedBy, 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))
}
// FileTypeEQ applies the EQ predicate on the "file_type" field.
func FileTypeEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFileType, v))
}
// FileTypeNEQ applies the NEQ predicate on the "file_type" field.
func FileTypeNEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldFileType, v))
}
// FileTypeIn applies the In predicate on the "file_type" field.
func FileTypeIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldFileType, vs...))
}
// FileTypeNotIn applies the NotIn predicate on the "file_type" field.
func FileTypeNotIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldFileType, vs...))
}
// FileTypeGT applies the GT predicate on the "file_type" field.
func FileTypeGT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldFileType, v))
}
// FileTypeGTE applies the GTE predicate on the "file_type" field.
func FileTypeGTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldFileType, v))
}
// FileTypeLT applies the LT predicate on the "file_type" field.
func FileTypeLT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldFileType, v))
}
// FileTypeLTE applies the LTE predicate on the "file_type" field.
func FileTypeLTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldFileType, v))
}
// FileTypeContains applies the Contains predicate on the "file_type" field.
func FileTypeContains(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContains(FieldFileType, v))
}
// FileTypeHasPrefix applies the HasPrefix predicate on the "file_type" field.
func FileTypeHasPrefix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasPrefix(FieldFileType, v))
}
// FileTypeHasSuffix applies the HasSuffix predicate on the "file_type" field.
func FileTypeHasSuffix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasSuffix(FieldFileType, v))
}
// FileTypeIsNil applies the IsNil predicate on the "file_type" field.
func FileTypeIsNil() predicate.Attachment {
return predicate.Attachment(sql.FieldIsNull(FieldFileType))
}
// FileTypeNotNil applies the NotNil predicate on the "file_type" field.
func FileTypeNotNil() predicate.Attachment {
return predicate.Attachment(sql.FieldNotNull(FieldFileType))
}
// FileTypeEqualFold applies the EqualFold predicate on the "file_type" field.
func FileTypeEqualFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEqualFold(FieldFileType, v))
}
// FileTypeContainsFold applies the ContainsFold predicate on the "file_type" field.
func FileTypeContainsFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContainsFold(FieldFileType, v))
}
// FileExtEQ applies the EQ predicate on the "file_ext" field.
func FileExtEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFileExt, v))
}
// FileExtNEQ applies the NEQ predicate on the "file_ext" field.
func FileExtNEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldFileExt, v))
}
// FileExtIn applies the In predicate on the "file_ext" field.
func FileExtIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldFileExt, vs...))
}
// FileExtNotIn applies the NotIn predicate on the "file_ext" field.
func FileExtNotIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldFileExt, vs...))
}
// FileExtGT applies the GT predicate on the "file_ext" field.
func FileExtGT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldFileExt, v))
}
// FileExtGTE applies the GTE predicate on the "file_ext" field.
func FileExtGTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldFileExt, v))
}
// FileExtLT applies the LT predicate on the "file_ext" field.
func FileExtLT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldFileExt, v))
}
// FileExtLTE applies the LTE predicate on the "file_ext" field.
func FileExtLTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldFileExt, v))
}
// FileExtContains applies the Contains predicate on the "file_ext" field.
func FileExtContains(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContains(FieldFileExt, v))
}
// FileExtHasPrefix applies the HasPrefix predicate on the "file_ext" field.
func FileExtHasPrefix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasPrefix(FieldFileExt, v))
}
// FileExtHasSuffix applies the HasSuffix predicate on the "file_ext" field.
func FileExtHasSuffix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasSuffix(FieldFileExt, v))
}
// FileExtIsNil applies the IsNil predicate on the "file_ext" field.
func FileExtIsNil() predicate.Attachment {
return predicate.Attachment(sql.FieldIsNull(FieldFileExt))
}
// FileExtNotNil applies the NotNil predicate on the "file_ext" field.
func FileExtNotNil() predicate.Attachment {
return predicate.Attachment(sql.FieldNotNull(FieldFileExt))
}
// FileExtEqualFold applies the EqualFold predicate on the "file_ext" field.
func FileExtEqualFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEqualFold(FieldFileExt, v))
}
// FileExtContainsFold applies the ContainsFold predicate on the "file_ext" field.
func FileExtContainsFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContainsFold(FieldFileExt, v))
}
// FileMd5EQ applies the EQ predicate on the "file_md5" field.
func FileMd5EQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldFileMd5, v))
}
// FileMd5NEQ applies the NEQ predicate on the "file_md5" field.
func FileMd5NEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldFileMd5, v))
}
// FileMd5In applies the In predicate on the "file_md5" field.
func FileMd5In(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldFileMd5, vs...))
}
// FileMd5NotIn applies the NotIn predicate on the "file_md5" field.
func FileMd5NotIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldFileMd5, vs...))
}
// FileMd5GT applies the GT predicate on the "file_md5" field.
func FileMd5GT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldFileMd5, v))
}
// FileMd5GTE applies the GTE predicate on the "file_md5" field.
func FileMd5GTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldFileMd5, v))
}
// FileMd5LT applies the LT predicate on the "file_md5" field.
func FileMd5LT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldFileMd5, v))
}
// FileMd5LTE applies the LTE predicate on the "file_md5" field.
func FileMd5LTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldFileMd5, v))
}
// FileMd5Contains applies the Contains predicate on the "file_md5" field.
func FileMd5Contains(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContains(FieldFileMd5, v))
}
// FileMd5HasPrefix applies the HasPrefix predicate on the "file_md5" field.
func FileMd5HasPrefix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasPrefix(FieldFileMd5, v))
}
// FileMd5HasSuffix applies the HasSuffix predicate on the "file_md5" field.
func FileMd5HasSuffix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasSuffix(FieldFileMd5, v))
}
// FileMd5IsNil applies the IsNil predicate on the "file_md5" field.
func FileMd5IsNil() predicate.Attachment {
return predicate.Attachment(sql.FieldIsNull(FieldFileMd5))
}
// FileMd5NotNil applies the NotNil predicate on the "file_md5" field.
func FileMd5NotNil() predicate.Attachment {
return predicate.Attachment(sql.FieldNotNull(FieldFileMd5))
}
// FileMd5EqualFold applies the EqualFold predicate on the "file_md5" field.
func FileMd5EqualFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEqualFold(FieldFileMd5, v))
}
// FileMd5ContainsFold applies the ContainsFold predicate on the "file_md5" field.
func FileMd5ContainsFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContainsFold(FieldFileMd5, 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))
}
// ArchivedEQ applies the EQ predicate on the "archived" field.
func ArchivedEQ(v bool) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldArchived, v))
}
// ArchivedNEQ applies the NEQ predicate on the "archived" field.
func ArchivedNEQ(v bool) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldArchived, v))
}
// ArchivedAtEQ applies the EQ predicate on the "archived_at" field.
func ArchivedAtEQ(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldArchivedAt, v))
}
// ArchivedAtNEQ applies the NEQ predicate on the "archived_at" field.
func ArchivedAtNEQ(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldArchivedAt, v))
}
// ArchivedAtIn applies the In predicate on the "archived_at" field.
func ArchivedAtIn(vs ...int64) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldArchivedAt, vs...))
}
// ArchivedAtNotIn applies the NotIn predicate on the "archived_at" field.
func ArchivedAtNotIn(vs ...int64) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldArchivedAt, vs...))
}
// ArchivedAtGT applies the GT predicate on the "archived_at" field.
func ArchivedAtGT(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldArchivedAt, v))
}
// ArchivedAtGTE applies the GTE predicate on the "archived_at" field.
func ArchivedAtGTE(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldArchivedAt, v))
}
// ArchivedAtLT applies the LT predicate on the "archived_at" field.
func ArchivedAtLT(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldArchivedAt, v))
}
// ArchivedAtLTE applies the LTE predicate on the "archived_at" field.
func ArchivedAtLTE(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldArchivedAt, v))
}
// ArchivedAtIsNil applies the IsNil predicate on the "archived_at" field.
func ArchivedAtIsNil() predicate.Attachment {
return predicate.Attachment(sql.FieldIsNull(FieldArchivedAt))
}
// ArchivedAtNotNil applies the NotNil predicate on the "archived_at" field.
func ArchivedAtNotNil() predicate.Attachment {
return predicate.Attachment(sql.FieldNotNull(FieldArchivedAt))
}
// DeletedEQ applies the EQ predicate on the "deleted" field.
func DeletedEQ(v bool) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldDeleted, v))
}
// DeletedNEQ applies the NEQ predicate on the "deleted" field.
func DeletedNEQ(v bool) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldDeleted, v))
}
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldDeletedAt, v))
}
// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...int64) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldDeletedAt, vs...))
}
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...int64) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldDeletedAt, vs...))
}
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldDeletedAt, v))
}
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldDeletedAt, v))
}
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldDeletedAt, v))
}
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v int64) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldDeletedAt, v))
}
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.Attachment {
return predicate.Attachment(sql.FieldIsNull(FieldDeletedAt))
}
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.Attachment {
return predicate.Attachment(sql.FieldNotNull(FieldDeletedAt))
}
// DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEQ(FieldDeletedBy, v))
}
// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNEQ(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldNEQ(FieldDeletedBy, v))
}
// DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldIn(FieldDeletedBy, vs...))
}
// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotIn(vs ...string) predicate.Attachment {
return predicate.Attachment(sql.FieldNotIn(FieldDeletedBy, vs...))
}
// DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGT(FieldDeletedBy, v))
}
// DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByGTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldGTE(FieldDeletedBy, v))
}
// DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLT(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLT(FieldDeletedBy, v))
}
// DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByLTE(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldLTE(FieldDeletedBy, v))
}
// DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContains(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContains(FieldDeletedBy, v))
}
// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasPrefix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasPrefix(FieldDeletedBy, v))
}
// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByHasSuffix(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldHasSuffix(FieldDeletedBy, v))
}
// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByIsNil() predicate.Attachment {
return predicate.Attachment(sql.FieldIsNull(FieldDeletedBy))
}
// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func DeletedByNotNil() predicate.Attachment {
return predicate.Attachment(sql.FieldNotNull(FieldDeletedBy))
}
// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByEqualFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldEqualFold(FieldDeletedBy, v))
}
// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByContainsFold(v string) predicate.Attachment {
return predicate.Attachment(sql.FieldContainsFold(FieldDeletedBy, 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))
}