feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package attachment
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the attachment type in the database.
|
||||
Label = "attachment"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldBizType holds the string denoting the biz_type field in the database.
|
||||
FieldBizType = "biz_type"
|
||||
// FieldBizID holds the string denoting the biz_id field in the database.
|
||||
FieldBizID = "biz_id"
|
||||
// FieldFileName holds the string denoting the file_name field in the database.
|
||||
FieldFileName = "file_name"
|
||||
// FieldFilePath holds the string denoting the file_path field in the database.
|
||||
FieldFilePath = "file_path"
|
||||
// FieldFileSize holds the string denoting the file_size field in the database.
|
||||
FieldFileSize = "file_size"
|
||||
// FieldMimeType holds the string denoting the mime_type field in the database.
|
||||
FieldMimeType = "mime_type"
|
||||
// FieldUploadedBy holds the string denoting the uploaded_by field in the database.
|
||||
FieldUploadedBy = "uploaded_by"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the attachment in the database.
|
||||
Table = "attachments"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for attachment fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldBizType,
|
||||
FieldBizID,
|
||||
FieldFileName,
|
||||
FieldFilePath,
|
||||
FieldFileSize,
|
||||
FieldMimeType,
|
||||
FieldUploadedBy,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// DefaultFileSize holds the default value on creation for the "file_size" field.
|
||||
DefaultFileSize int64
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() int64
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the Attachment queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBizType orders the results by the biz_type field.
|
||||
func ByBizType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBizType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBizID orders the results by the biz_id field.
|
||||
func ByBizID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBizID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByFileName orders the results by the file_name field.
|
||||
func ByFileName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldFileName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByFilePath orders the results by the file_path field.
|
||||
func ByFilePath(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldFilePath, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByFileSize orders the results by the file_size field.
|
||||
func ByFileSize(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldFileSize, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMimeType orders the results by the mime_type field.
|
||||
func ByMimeType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMimeType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUploadedBy orders the results by the uploaded_by field.
|
||||
func ByUploadedBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUploadedBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,599 @@
|
||||
// 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))
|
||||
}
|
||||
Reference in New Issue
Block a user