19cc7a778c
- Deleted old gRPC service definitions in `game_grpc.pb.go` and `public.go`. - Added new API server implementations for objectstory, player, and shop services. - Introduced configuration files for new APIs in `etc/*.yaml`. - Created main entry points for each service in `objectstory.go`, `player.go`, and `shop.go`. - Removed unused user update handler and user API files. - Added utility functions for context management and HTTP header parsing. - Introduced PostgreSQL backup configuration in `backup/postgreSql.yaml`.
506 lines
19 KiB
Go
506 lines
19 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package orderstatelogs
|
|
|
|
import (
|
|
"juwan-backend/app/order/rpc/internal/models/predicate"
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// OrderID applies equality check predicate on the "order_id" field. It's identical to OrderIDEQ.
|
|
func OrderID(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldOrderID, v))
|
|
}
|
|
|
|
// FromStatus applies equality check predicate on the "from_status" field. It's identical to FromStatusEQ.
|
|
func FromStatus(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldFromStatus, v))
|
|
}
|
|
|
|
// ToStatus applies equality check predicate on the "to_status" field. It's identical to ToStatusEQ.
|
|
func ToStatus(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldToStatus, v))
|
|
}
|
|
|
|
// Action applies equality check predicate on the "action" field. It's identical to ActionEQ.
|
|
func Action(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldAction, v))
|
|
}
|
|
|
|
// ActorID applies equality check predicate on the "actor_id" field. It's identical to ActorIDEQ.
|
|
func ActorID(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldActorID, v))
|
|
}
|
|
|
|
// ActorRole applies equality check predicate on the "actor_role" field. It's identical to ActorRoleEQ.
|
|
func ActorRole(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldActorRole, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// OrderIDEQ applies the EQ predicate on the "order_id" field.
|
|
func OrderIDEQ(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldOrderID, v))
|
|
}
|
|
|
|
// OrderIDNEQ applies the NEQ predicate on the "order_id" field.
|
|
func OrderIDNEQ(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNEQ(FieldOrderID, v))
|
|
}
|
|
|
|
// OrderIDIn applies the In predicate on the "order_id" field.
|
|
func OrderIDIn(vs ...int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldIn(FieldOrderID, vs...))
|
|
}
|
|
|
|
// OrderIDNotIn applies the NotIn predicate on the "order_id" field.
|
|
func OrderIDNotIn(vs ...int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNotIn(FieldOrderID, vs...))
|
|
}
|
|
|
|
// OrderIDGT applies the GT predicate on the "order_id" field.
|
|
func OrderIDGT(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGT(FieldOrderID, v))
|
|
}
|
|
|
|
// OrderIDGTE applies the GTE predicate on the "order_id" field.
|
|
func OrderIDGTE(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGTE(FieldOrderID, v))
|
|
}
|
|
|
|
// OrderIDLT applies the LT predicate on the "order_id" field.
|
|
func OrderIDLT(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLT(FieldOrderID, v))
|
|
}
|
|
|
|
// OrderIDLTE applies the LTE predicate on the "order_id" field.
|
|
func OrderIDLTE(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLTE(FieldOrderID, v))
|
|
}
|
|
|
|
// FromStatusEQ applies the EQ predicate on the "from_status" field.
|
|
func FromStatusEQ(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldFromStatus, v))
|
|
}
|
|
|
|
// FromStatusNEQ applies the NEQ predicate on the "from_status" field.
|
|
func FromStatusNEQ(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNEQ(FieldFromStatus, v))
|
|
}
|
|
|
|
// FromStatusIn applies the In predicate on the "from_status" field.
|
|
func FromStatusIn(vs ...string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldIn(FieldFromStatus, vs...))
|
|
}
|
|
|
|
// FromStatusNotIn applies the NotIn predicate on the "from_status" field.
|
|
func FromStatusNotIn(vs ...string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNotIn(FieldFromStatus, vs...))
|
|
}
|
|
|
|
// FromStatusGT applies the GT predicate on the "from_status" field.
|
|
func FromStatusGT(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGT(FieldFromStatus, v))
|
|
}
|
|
|
|
// FromStatusGTE applies the GTE predicate on the "from_status" field.
|
|
func FromStatusGTE(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGTE(FieldFromStatus, v))
|
|
}
|
|
|
|
// FromStatusLT applies the LT predicate on the "from_status" field.
|
|
func FromStatusLT(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLT(FieldFromStatus, v))
|
|
}
|
|
|
|
// FromStatusLTE applies the LTE predicate on the "from_status" field.
|
|
func FromStatusLTE(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLTE(FieldFromStatus, v))
|
|
}
|
|
|
|
// FromStatusContains applies the Contains predicate on the "from_status" field.
|
|
func FromStatusContains(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldContains(FieldFromStatus, v))
|
|
}
|
|
|
|
// FromStatusHasPrefix applies the HasPrefix predicate on the "from_status" field.
|
|
func FromStatusHasPrefix(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldHasPrefix(FieldFromStatus, v))
|
|
}
|
|
|
|
// FromStatusHasSuffix applies the HasSuffix predicate on the "from_status" field.
|
|
func FromStatusHasSuffix(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldHasSuffix(FieldFromStatus, v))
|
|
}
|
|
|
|
// FromStatusIsNil applies the IsNil predicate on the "from_status" field.
|
|
func FromStatusIsNil() predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldIsNull(FieldFromStatus))
|
|
}
|
|
|
|
// FromStatusNotNil applies the NotNil predicate on the "from_status" field.
|
|
func FromStatusNotNil() predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNotNull(FieldFromStatus))
|
|
}
|
|
|
|
// FromStatusEqualFold applies the EqualFold predicate on the "from_status" field.
|
|
func FromStatusEqualFold(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEqualFold(FieldFromStatus, v))
|
|
}
|
|
|
|
// FromStatusContainsFold applies the ContainsFold predicate on the "from_status" field.
|
|
func FromStatusContainsFold(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldContainsFold(FieldFromStatus, v))
|
|
}
|
|
|
|
// ToStatusEQ applies the EQ predicate on the "to_status" field.
|
|
func ToStatusEQ(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldToStatus, v))
|
|
}
|
|
|
|
// ToStatusNEQ applies the NEQ predicate on the "to_status" field.
|
|
func ToStatusNEQ(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNEQ(FieldToStatus, v))
|
|
}
|
|
|
|
// ToStatusIn applies the In predicate on the "to_status" field.
|
|
func ToStatusIn(vs ...string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldIn(FieldToStatus, vs...))
|
|
}
|
|
|
|
// ToStatusNotIn applies the NotIn predicate on the "to_status" field.
|
|
func ToStatusNotIn(vs ...string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNotIn(FieldToStatus, vs...))
|
|
}
|
|
|
|
// ToStatusGT applies the GT predicate on the "to_status" field.
|
|
func ToStatusGT(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGT(FieldToStatus, v))
|
|
}
|
|
|
|
// ToStatusGTE applies the GTE predicate on the "to_status" field.
|
|
func ToStatusGTE(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGTE(FieldToStatus, v))
|
|
}
|
|
|
|
// ToStatusLT applies the LT predicate on the "to_status" field.
|
|
func ToStatusLT(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLT(FieldToStatus, v))
|
|
}
|
|
|
|
// ToStatusLTE applies the LTE predicate on the "to_status" field.
|
|
func ToStatusLTE(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLTE(FieldToStatus, v))
|
|
}
|
|
|
|
// ToStatusContains applies the Contains predicate on the "to_status" field.
|
|
func ToStatusContains(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldContains(FieldToStatus, v))
|
|
}
|
|
|
|
// ToStatusHasPrefix applies the HasPrefix predicate on the "to_status" field.
|
|
func ToStatusHasPrefix(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldHasPrefix(FieldToStatus, v))
|
|
}
|
|
|
|
// ToStatusHasSuffix applies the HasSuffix predicate on the "to_status" field.
|
|
func ToStatusHasSuffix(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldHasSuffix(FieldToStatus, v))
|
|
}
|
|
|
|
// ToStatusEqualFold applies the EqualFold predicate on the "to_status" field.
|
|
func ToStatusEqualFold(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEqualFold(FieldToStatus, v))
|
|
}
|
|
|
|
// ToStatusContainsFold applies the ContainsFold predicate on the "to_status" field.
|
|
func ToStatusContainsFold(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldContainsFold(FieldToStatus, v))
|
|
}
|
|
|
|
// ActionEQ applies the EQ predicate on the "action" field.
|
|
func ActionEQ(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldAction, v))
|
|
}
|
|
|
|
// ActionNEQ applies the NEQ predicate on the "action" field.
|
|
func ActionNEQ(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNEQ(FieldAction, v))
|
|
}
|
|
|
|
// ActionIn applies the In predicate on the "action" field.
|
|
func ActionIn(vs ...string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldIn(FieldAction, vs...))
|
|
}
|
|
|
|
// ActionNotIn applies the NotIn predicate on the "action" field.
|
|
func ActionNotIn(vs ...string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNotIn(FieldAction, vs...))
|
|
}
|
|
|
|
// ActionGT applies the GT predicate on the "action" field.
|
|
func ActionGT(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGT(FieldAction, v))
|
|
}
|
|
|
|
// ActionGTE applies the GTE predicate on the "action" field.
|
|
func ActionGTE(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGTE(FieldAction, v))
|
|
}
|
|
|
|
// ActionLT applies the LT predicate on the "action" field.
|
|
func ActionLT(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLT(FieldAction, v))
|
|
}
|
|
|
|
// ActionLTE applies the LTE predicate on the "action" field.
|
|
func ActionLTE(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLTE(FieldAction, v))
|
|
}
|
|
|
|
// ActionContains applies the Contains predicate on the "action" field.
|
|
func ActionContains(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldContains(FieldAction, v))
|
|
}
|
|
|
|
// ActionHasPrefix applies the HasPrefix predicate on the "action" field.
|
|
func ActionHasPrefix(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldHasPrefix(FieldAction, v))
|
|
}
|
|
|
|
// ActionHasSuffix applies the HasSuffix predicate on the "action" field.
|
|
func ActionHasSuffix(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldHasSuffix(FieldAction, v))
|
|
}
|
|
|
|
// ActionEqualFold applies the EqualFold predicate on the "action" field.
|
|
func ActionEqualFold(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEqualFold(FieldAction, v))
|
|
}
|
|
|
|
// ActionContainsFold applies the ContainsFold predicate on the "action" field.
|
|
func ActionContainsFold(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldContainsFold(FieldAction, v))
|
|
}
|
|
|
|
// ActorIDEQ applies the EQ predicate on the "actor_id" field.
|
|
func ActorIDEQ(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldActorID, v))
|
|
}
|
|
|
|
// ActorIDNEQ applies the NEQ predicate on the "actor_id" field.
|
|
func ActorIDNEQ(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNEQ(FieldActorID, v))
|
|
}
|
|
|
|
// ActorIDIn applies the In predicate on the "actor_id" field.
|
|
func ActorIDIn(vs ...int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldIn(FieldActorID, vs...))
|
|
}
|
|
|
|
// ActorIDNotIn applies the NotIn predicate on the "actor_id" field.
|
|
func ActorIDNotIn(vs ...int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNotIn(FieldActorID, vs...))
|
|
}
|
|
|
|
// ActorIDGT applies the GT predicate on the "actor_id" field.
|
|
func ActorIDGT(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGT(FieldActorID, v))
|
|
}
|
|
|
|
// ActorIDGTE applies the GTE predicate on the "actor_id" field.
|
|
func ActorIDGTE(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGTE(FieldActorID, v))
|
|
}
|
|
|
|
// ActorIDLT applies the LT predicate on the "actor_id" field.
|
|
func ActorIDLT(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLT(FieldActorID, v))
|
|
}
|
|
|
|
// ActorIDLTE applies the LTE predicate on the "actor_id" field.
|
|
func ActorIDLTE(v int64) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLTE(FieldActorID, v))
|
|
}
|
|
|
|
// ActorRoleEQ applies the EQ predicate on the "actor_role" field.
|
|
func ActorRoleEQ(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldActorRole, v))
|
|
}
|
|
|
|
// ActorRoleNEQ applies the NEQ predicate on the "actor_role" field.
|
|
func ActorRoleNEQ(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNEQ(FieldActorRole, v))
|
|
}
|
|
|
|
// ActorRoleIn applies the In predicate on the "actor_role" field.
|
|
func ActorRoleIn(vs ...string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldIn(FieldActorRole, vs...))
|
|
}
|
|
|
|
// ActorRoleNotIn applies the NotIn predicate on the "actor_role" field.
|
|
func ActorRoleNotIn(vs ...string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNotIn(FieldActorRole, vs...))
|
|
}
|
|
|
|
// ActorRoleGT applies the GT predicate on the "actor_role" field.
|
|
func ActorRoleGT(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGT(FieldActorRole, v))
|
|
}
|
|
|
|
// ActorRoleGTE applies the GTE predicate on the "actor_role" field.
|
|
func ActorRoleGTE(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGTE(FieldActorRole, v))
|
|
}
|
|
|
|
// ActorRoleLT applies the LT predicate on the "actor_role" field.
|
|
func ActorRoleLT(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLT(FieldActorRole, v))
|
|
}
|
|
|
|
// ActorRoleLTE applies the LTE predicate on the "actor_role" field.
|
|
func ActorRoleLTE(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLTE(FieldActorRole, v))
|
|
}
|
|
|
|
// ActorRoleContains applies the Contains predicate on the "actor_role" field.
|
|
func ActorRoleContains(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldContains(FieldActorRole, v))
|
|
}
|
|
|
|
// ActorRoleHasPrefix applies the HasPrefix predicate on the "actor_role" field.
|
|
func ActorRoleHasPrefix(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldHasPrefix(FieldActorRole, v))
|
|
}
|
|
|
|
// ActorRoleHasSuffix applies the HasSuffix predicate on the "actor_role" field.
|
|
func ActorRoleHasSuffix(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldHasSuffix(FieldActorRole, v))
|
|
}
|
|
|
|
// ActorRoleEqualFold applies the EqualFold predicate on the "actor_role" field.
|
|
func ActorRoleEqualFold(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEqualFold(FieldActorRole, v))
|
|
}
|
|
|
|
// ActorRoleContainsFold applies the ContainsFold predicate on the "actor_role" field.
|
|
func ActorRoleContainsFold(v string) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldContainsFold(FieldActorRole, v))
|
|
}
|
|
|
|
// MetadataIsNil applies the IsNil predicate on the "metadata" field.
|
|
func MetadataIsNil() predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldIsNull(FieldMetadata))
|
|
}
|
|
|
|
// MetadataNotNil applies the NotNil predicate on the "metadata" field.
|
|
func MetadataNotNil() predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNotNull(FieldMetadata))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.OrderStateLogs) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.OrderStateLogs) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.OrderStateLogs) predicate.OrderStateLogs {
|
|
return predicate.OrderStateLogs(sql.NotPredicates(p))
|
|
}
|