Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SeatAssignment) predicate.SeatAssignment
- func AssignedAt(v time.Time) predicate.SeatAssignment
- func AssignedAtEQ(v time.Time) predicate.SeatAssignment
- func AssignedAtGT(v time.Time) predicate.SeatAssignment
- func AssignedAtGTE(v time.Time) predicate.SeatAssignment
- func AssignedAtIn(vs ...time.Time) predicate.SeatAssignment
- func AssignedAtLT(v time.Time) predicate.SeatAssignment
- func AssignedAtLTE(v time.Time) predicate.SeatAssignment
- func AssignedAtNEQ(v time.Time) predicate.SeatAssignment
- func AssignedAtNotIn(vs ...time.Time) predicate.SeatAssignment
- func AssignedBy(v uuid.UUID) predicate.SeatAssignment
- func AssignedByEQ(v uuid.UUID) predicate.SeatAssignment
- func AssignedByIn(vs ...uuid.UUID) predicate.SeatAssignment
- func AssignedByNEQ(v uuid.UUID) predicate.SeatAssignment
- func AssignedByNotIn(vs ...uuid.UUID) predicate.SeatAssignment
- func HasAssigner() predicate.SeatAssignment
- func HasAssignerWith(preds ...predicate.Principal) predicate.SeatAssignment
- func HasLicense() predicate.SeatAssignment
- func HasLicenseWith(preds ...predicate.License) predicate.SeatAssignment
- func HasPrincipal() predicate.SeatAssignment
- func HasPrincipalWith(preds ...predicate.Principal) predicate.SeatAssignment
- func ID(id uuid.UUID) predicate.SeatAssignment
- func IDEQ(id uuid.UUID) predicate.SeatAssignment
- func IDGT(id uuid.UUID) predicate.SeatAssignment
- func IDGTE(id uuid.UUID) predicate.SeatAssignment
- func IDIn(ids ...uuid.UUID) predicate.SeatAssignment
- func IDLT(id uuid.UUID) predicate.SeatAssignment
- func IDLTE(id uuid.UUID) predicate.SeatAssignment
- func IDNEQ(id uuid.UUID) predicate.SeatAssignment
- func IDNotIn(ids ...uuid.UUID) predicate.SeatAssignment
- func LicenseID(v uuid.UUID) predicate.SeatAssignment
- func LicenseIDEQ(v uuid.UUID) predicate.SeatAssignment
- func LicenseIDIn(vs ...uuid.UUID) predicate.SeatAssignment
- func LicenseIDNEQ(v uuid.UUID) predicate.SeatAssignment
- func LicenseIDNotIn(vs ...uuid.UUID) predicate.SeatAssignment
- func Not(p predicate.SeatAssignment) predicate.SeatAssignment
- func Or(predicates ...predicate.SeatAssignment) predicate.SeatAssignment
- func PrincipalID(v uuid.UUID) predicate.SeatAssignment
- func PrincipalIDEQ(v uuid.UUID) predicate.SeatAssignment
- func PrincipalIDIn(vs ...uuid.UUID) predicate.SeatAssignment
- func PrincipalIDNEQ(v uuid.UUID) predicate.SeatAssignment
- func PrincipalIDNotIn(vs ...uuid.UUID) predicate.SeatAssignment
- func ValidColumn(column string) bool
- type OrderOption
- func ByAssignedAt(opts ...sql.OrderTermOption) OrderOption
- func ByAssignedBy(opts ...sql.OrderTermOption) OrderOption
- func ByAssignerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLicenseField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByLicenseID(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the seatassignment type in the database. Label = "seat_assignment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldLicenseID holds the string denoting the license_id field in the database. FieldLicenseID = "license_id" // FieldPrincipalID holds the string denoting the principal_id field in the database. FieldPrincipalID = "principal_id" // FieldAssignedBy holds the string denoting the assigned_by field in the database. FieldAssignedBy = "assigned_by" // FieldAssignedAt holds the string denoting the assigned_at field in the database. FieldAssignedAt = "assigned_at" // EdgeLicense holds the string denoting the license edge name in mutations. EdgeLicense = "license" // EdgePrincipal holds the string denoting the principal edge name in mutations. EdgePrincipal = "principal" // EdgeAssigner holds the string denoting the assigner edge name in mutations. EdgeAssigner = "assigner" // Table holds the table name of the seatassignment in the database. Table = "cf_seat_assignments" // LicenseTable is the table that holds the license relation/edge. LicenseTable = "cf_seat_assignments" // LicenseInverseTable is the table name for the License entity. // It exists in this package in order to avoid circular dependency with the "license" package. LicenseInverseTable = "cf_licenses" // LicenseColumn is the table column denoting the license relation/edge. LicenseColumn = "license_id" // PrincipalTable is the table that holds the principal relation/edge. PrincipalTable = "cf_seat_assignments" // PrincipalInverseTable is the table name for the Principal entity. // It exists in this package in order to avoid circular dependency with the "principal" package. PrincipalInverseTable = "cf_principals" // PrincipalColumn is the table column denoting the principal relation/edge. PrincipalColumn = "principal_id" // AssignerTable is the table that holds the assigner relation/edge. AssignerTable = "cf_seat_assignments" // AssignerInverseTable is the table name for the Principal entity. // It exists in this package in order to avoid circular dependency with the "principal" package. AssignerInverseTable = "cf_principals" // AssignerColumn is the table column denoting the assigner relation/edge. AssignerColumn = "assigned_by" )
Variables ¶
var ( // DefaultAssignedAt holds the default value on creation for the "assigned_at" field. DefaultAssignedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldLicenseID, FieldPrincipalID, FieldAssignedBy, FieldAssignedAt, }
Columns holds all SQL columns for seatassignment fields.
Functions ¶
func And ¶
func And(predicates ...predicate.SeatAssignment) predicate.SeatAssignment
And groups predicates with the AND operator between them.
func AssignedAt ¶
func AssignedAt(v time.Time) predicate.SeatAssignment
AssignedAt applies equality check predicate on the "assigned_at" field. It's identical to AssignedAtEQ.
func AssignedAtEQ ¶
func AssignedAtEQ(v time.Time) predicate.SeatAssignment
AssignedAtEQ applies the EQ predicate on the "assigned_at" field.
func AssignedAtGT ¶
func AssignedAtGT(v time.Time) predicate.SeatAssignment
AssignedAtGT applies the GT predicate on the "assigned_at" field.
func AssignedAtGTE ¶
func AssignedAtGTE(v time.Time) predicate.SeatAssignment
AssignedAtGTE applies the GTE predicate on the "assigned_at" field.
func AssignedAtIn ¶
func AssignedAtIn(vs ...time.Time) predicate.SeatAssignment
AssignedAtIn applies the In predicate on the "assigned_at" field.
func AssignedAtLT ¶
func AssignedAtLT(v time.Time) predicate.SeatAssignment
AssignedAtLT applies the LT predicate on the "assigned_at" field.
func AssignedAtLTE ¶
func AssignedAtLTE(v time.Time) predicate.SeatAssignment
AssignedAtLTE applies the LTE predicate on the "assigned_at" field.
func AssignedAtNEQ ¶
func AssignedAtNEQ(v time.Time) predicate.SeatAssignment
AssignedAtNEQ applies the NEQ predicate on the "assigned_at" field.
func AssignedAtNotIn ¶
func AssignedAtNotIn(vs ...time.Time) predicate.SeatAssignment
AssignedAtNotIn applies the NotIn predicate on the "assigned_at" field.
func AssignedBy ¶
func AssignedBy(v uuid.UUID) predicate.SeatAssignment
AssignedBy applies equality check predicate on the "assigned_by" field. It's identical to AssignedByEQ.
func AssignedByEQ ¶
func AssignedByEQ(v uuid.UUID) predicate.SeatAssignment
AssignedByEQ applies the EQ predicate on the "assigned_by" field.
func AssignedByIn ¶
func AssignedByIn(vs ...uuid.UUID) predicate.SeatAssignment
AssignedByIn applies the In predicate on the "assigned_by" field.
func AssignedByNEQ ¶
func AssignedByNEQ(v uuid.UUID) predicate.SeatAssignment
AssignedByNEQ applies the NEQ predicate on the "assigned_by" field.
func AssignedByNotIn ¶
func AssignedByNotIn(vs ...uuid.UUID) predicate.SeatAssignment
AssignedByNotIn applies the NotIn predicate on the "assigned_by" field.
func HasAssigner ¶
func HasAssigner() predicate.SeatAssignment
HasAssigner applies the HasEdge predicate on the "assigner" edge.
func HasAssignerWith ¶
func HasAssignerWith(preds ...predicate.Principal) predicate.SeatAssignment
HasAssignerWith applies the HasEdge predicate on the "assigner" edge with a given conditions (other predicates).
func HasLicense ¶
func HasLicense() predicate.SeatAssignment
HasLicense applies the HasEdge predicate on the "license" edge.
func HasLicenseWith ¶
func HasLicenseWith(preds ...predicate.License) predicate.SeatAssignment
HasLicenseWith applies the HasEdge predicate on the "license" edge with a given conditions (other predicates).
func HasPrincipal ¶
func HasPrincipal() predicate.SeatAssignment
HasPrincipal applies the HasEdge predicate on the "principal" edge.
func HasPrincipalWith ¶
func HasPrincipalWith(preds ...predicate.Principal) predicate.SeatAssignment
HasPrincipalWith applies the HasEdge predicate on the "principal" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.SeatAssignment
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.SeatAssignment
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.SeatAssignment
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.SeatAssignment
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.SeatAssignment
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.SeatAssignment
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.SeatAssignment
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.SeatAssignment
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.SeatAssignment
IDNotIn applies the NotIn predicate on the ID field.
func LicenseID ¶
func LicenseID(v uuid.UUID) predicate.SeatAssignment
LicenseID applies equality check predicate on the "license_id" field. It's identical to LicenseIDEQ.
func LicenseIDEQ ¶
func LicenseIDEQ(v uuid.UUID) predicate.SeatAssignment
LicenseIDEQ applies the EQ predicate on the "license_id" field.
func LicenseIDIn ¶
func LicenseIDIn(vs ...uuid.UUID) predicate.SeatAssignment
LicenseIDIn applies the In predicate on the "license_id" field.
func LicenseIDNEQ ¶
func LicenseIDNEQ(v uuid.UUID) predicate.SeatAssignment
LicenseIDNEQ applies the NEQ predicate on the "license_id" field.
func LicenseIDNotIn ¶
func LicenseIDNotIn(vs ...uuid.UUID) predicate.SeatAssignment
LicenseIDNotIn applies the NotIn predicate on the "license_id" field.
func Not ¶
func Not(p predicate.SeatAssignment) predicate.SeatAssignment
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SeatAssignment) predicate.SeatAssignment
Or groups predicates with the OR operator between them.
func PrincipalID ¶
func PrincipalID(v uuid.UUID) predicate.SeatAssignment
PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.
func PrincipalIDEQ ¶
func PrincipalIDEQ(v uuid.UUID) predicate.SeatAssignment
PrincipalIDEQ applies the EQ predicate on the "principal_id" field.
func PrincipalIDIn ¶
func PrincipalIDIn(vs ...uuid.UUID) predicate.SeatAssignment
PrincipalIDIn applies the In predicate on the "principal_id" field.
func PrincipalIDNEQ ¶
func PrincipalIDNEQ(v uuid.UUID) predicate.SeatAssignment
PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.
func PrincipalIDNotIn ¶
func PrincipalIDNotIn(vs ...uuid.UUID) predicate.SeatAssignment
PrincipalIDNotIn applies the NotIn predicate on the "principal_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the SeatAssignment queries.
func ByAssignedAt ¶
func ByAssignedAt(opts ...sql.OrderTermOption) OrderOption
ByAssignedAt orders the results by the assigned_at field.
func ByAssignedBy ¶
func ByAssignedBy(opts ...sql.OrderTermOption) OrderOption
ByAssignedBy orders the results by the assigned_by field.
func ByAssignerField ¶
func ByAssignerField(field string, opts ...sql.OrderTermOption) OrderOption
ByAssignerField orders the results by assigner field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLicenseField ¶
func ByLicenseField(field string, opts ...sql.OrderTermOption) OrderOption
ByLicenseField orders the results by license field.
func ByLicenseID ¶
func ByLicenseID(opts ...sql.OrderTermOption) OrderOption
ByLicenseID orders the results by the license_id field.
func ByPrincipalField ¶
func ByPrincipalField(field string, opts ...sql.OrderTermOption) OrderOption
ByPrincipalField orders the results by principal field.
func ByPrincipalID ¶
func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
ByPrincipalID orders the results by the principal_id field.