Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Vote) predicate.Vote
- func CreatedAt(v time.Time) predicate.Vote
- func CreatedAtEQ(v time.Time) predicate.Vote
- func CreatedAtGT(v time.Time) predicate.Vote
- func CreatedAtGTE(v time.Time) predicate.Vote
- func CreatedAtIn(vs ...time.Time) predicate.Vote
- func CreatedAtLT(v time.Time) predicate.Vote
- func CreatedAtLTE(v time.Time) predicate.Vote
- func CreatedAtNEQ(v time.Time) predicate.Vote
- func CreatedAtNotIn(vs ...time.Time) predicate.Vote
- func CreatedBy(v int64) predicate.Vote
- func CreatedByEQ(v int64) predicate.Vote
- func CreatedByGT(v int64) predicate.Vote
- func CreatedByGTE(v int64) predicate.Vote
- func CreatedByIn(vs ...int64) predicate.Vote
- func CreatedByLT(v int64) predicate.Vote
- func CreatedByLTE(v int64) predicate.Vote
- func CreatedByNEQ(v int64) predicate.Vote
- func CreatedByNotIn(vs ...int64) predicate.Vote
- func DeletedAt(v time.Time) predicate.Vote
- func DeletedAtEQ(v time.Time) predicate.Vote
- func DeletedAtGT(v time.Time) predicate.Vote
- func DeletedAtGTE(v time.Time) predicate.Vote
- func DeletedAtIn(vs ...time.Time) predicate.Vote
- func DeletedAtLT(v time.Time) predicate.Vote
- func DeletedAtLTE(v time.Time) predicate.Vote
- func DeletedAtNEQ(v time.Time) predicate.Vote
- func DeletedAtNotIn(vs ...time.Time) predicate.Vote
- func HasMission() predicate.Vote
- func HasMissionWith(preds ...predicate.Mission) predicate.Vote
- func ID(id int64) predicate.Vote
- func IDEQ(id int64) predicate.Vote
- func IDGT(id int64) predicate.Vote
- func IDGTE(id int64) predicate.Vote
- func IDIn(ids ...int64) predicate.Vote
- func IDLT(id int64) predicate.Vote
- func IDLTE(id int64) predicate.Vote
- func IDNEQ(id int64) predicate.Vote
- func IDNotIn(ids ...int64) predicate.Vote
- func MissionID(v int64) predicate.Vote
- func MissionIDEQ(v int64) predicate.Vote
- func MissionIDIn(vs ...int64) predicate.Vote
- func MissionIDNEQ(v int64) predicate.Vote
- func MissionIDNotIn(vs ...int64) predicate.Vote
- func Not(p predicate.Vote) predicate.Vote
- func Or(predicates ...predicate.Vote) predicate.Vote
- func Pass(v bool) predicate.Vote
- func PassEQ(v bool) predicate.Vote
- func PassNEQ(v bool) predicate.Vote
- func UpdatedAt(v time.Time) predicate.Vote
- func UpdatedAtEQ(v time.Time) predicate.Vote
- func UpdatedAtGT(v time.Time) predicate.Vote
- func UpdatedAtGTE(v time.Time) predicate.Vote
- func UpdatedAtIn(vs ...time.Time) predicate.Vote
- func UpdatedAtLT(v time.Time) predicate.Vote
- func UpdatedAtLTE(v time.Time) predicate.Vote
- func UpdatedAtNEQ(v time.Time) predicate.Vote
- func UpdatedAtNotIn(vs ...time.Time) predicate.Vote
- func UpdatedBy(v int64) predicate.Vote
- func UpdatedByEQ(v int64) predicate.Vote
- func UpdatedByGT(v int64) predicate.Vote
- func UpdatedByGTE(v int64) predicate.Vote
- func UpdatedByIn(vs ...int64) predicate.Vote
- func UpdatedByLT(v int64) predicate.Vote
- func UpdatedByLTE(v int64) predicate.Vote
- func UpdatedByNEQ(v int64) predicate.Vote
- func UpdatedByNotIn(vs ...int64) predicate.Vote
- func UserID(v int64) predicate.Vote
- func UserIDEQ(v int64) predicate.Vote
- func UserIDGT(v int64) predicate.Vote
- func UserIDGTE(v int64) predicate.Vote
- func UserIDIn(vs ...int64) predicate.Vote
- func UserIDLT(v int64) predicate.Vote
- func UserIDLTE(v int64) predicate.Vote
- func UserIDNEQ(v int64) predicate.Vote
- func UserIDNotIn(vs ...int64) predicate.Vote
- func ValidColumn(column string) bool
- func Voted(v bool) predicate.Vote
- func VotedEQ(v bool) predicate.Vote
- func VotedNEQ(v bool) predicate.Vote
Constants ¶
const ( // Label holds the string label denoting the vote type in the database. Label = "vote" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldMissionID holds the string denoting the mission_id field in the database. FieldMissionID = "mission_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldPass holds the string denoting the pass field in the database. FieldPass = "pass" // FieldVoted holds the string denoting the voted field in the database. FieldVoted = "voted" // EdgeMission holds the string denoting the mission edge name in mutations. EdgeMission = "mission" // Table holds the table name of the vote in the database. Table = "votes" // MissionTable is the table that holds the mission relation/edge. MissionTable = "votes" // MissionInverseTable is the table name for the Mission entity. // It exists in this package in order to avoid circular dependency with the "mission" package. MissionInverseTable = "missions" // MissionColumn is the table column denoting the mission relation/edge. MissionColumn = "mission_id" )
Variables ¶
var ( // DefaultCreatedBy holds the default value on creation for the "created_by" field. DefaultCreatedBy int64 // DefaultUpdatedBy holds the default value on creation for the "updated_by" field. DefaultUpdatedBy int64 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultDeletedAt holds the default value on creation for the "deleted_at" field. DefaultDeletedAt time.Time // DefaultPass holds the default value on creation for the "pass" field. DefaultPass bool // DefaultVoted holds the default value on creation for the "voted" field. DefaultVoted bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() int64 )
var Columns = []string{ FieldID, FieldCreatedBy, FieldUpdatedBy, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldMissionID, FieldUserID, FieldPass, FieldVoted, }
Columns holds all SQL columns for vote fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func HasMission ¶
HasMission applies the HasEdge predicate on the "mission" edge.
func HasMissionWith ¶
HasMissionWith applies the HasEdge predicate on the "mission" edge with a given conditions (other predicates).
func MissionID ¶
MissionID applies equality check predicate on the "mission_id" field. It's identical to MissionIDEQ.
func MissionIDEQ ¶
MissionIDEQ applies the EQ predicate on the "mission_id" field.
func MissionIDIn ¶
MissionIDIn applies the In predicate on the "mission_id" field.
func MissionIDNEQ ¶
MissionIDNEQ applies the NEQ predicate on the "mission_id" field.
func MissionIDNotIn ¶
MissionIDNotIn applies the NotIn predicate on the "mission_id" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Voted ¶
Voted applies equality check predicate on the "voted" field. It's identical to VotedEQ.
Types ¶
This section is empty.