Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Visit) predicate.Visit
- func CreatedAt(v time.Time) predicate.Visit
- func CreatedAtEQ(v time.Time) predicate.Visit
- func CreatedAtGT(v time.Time) predicate.Visit
- func CreatedAtGTE(v time.Time) predicate.Visit
- func CreatedAtIn(vs ...time.Time) predicate.Visit
- func CreatedAtLT(v time.Time) predicate.Visit
- func CreatedAtLTE(v time.Time) predicate.Visit
- func CreatedAtNEQ(v time.Time) predicate.Visit
- func CreatedAtNotIn(vs ...time.Time) predicate.Visit
- func DeletedAt(v time.Time) predicate.Visit
- func DeletedAtEQ(v time.Time) predicate.Visit
- func DeletedAtGT(v time.Time) predicate.Visit
- func DeletedAtGTE(v time.Time) predicate.Visit
- func DeletedAtIn(vs ...time.Time) predicate.Visit
- func DeletedAtIsNil() predicate.Visit
- func DeletedAtLT(v time.Time) predicate.Visit
- func DeletedAtLTE(v time.Time) predicate.Visit
- func DeletedAtNEQ(v time.Time) predicate.Visit
- func DeletedAtNotIn(vs ...time.Time) predicate.Visit
- func DeletedAtNotNil() predicate.Visit
- func HasAttachment() predicate.Visit
- func HasAttachmentWith(preds ...predicate.Attachment) predicate.Visit
- func HasReception() predicate.Visit
- func HasReceptionWith(preds ...predicate.Reception) predicate.Visit
- func ID(id int) predicate.Visit
- func IDEQ(id int) predicate.Visit
- func IDGT(id int) predicate.Visit
- func IDGTE(id int) predicate.Visit
- func IDIn(ids ...int) predicate.Visit
- func IDLT(id int) predicate.Visit
- func IDLTE(id int) predicate.Visit
- func IDNEQ(id int) predicate.Visit
- func IDNotIn(ids ...int) predicate.Visit
- func IsPaid(v bool) predicate.Visit
- func IsPaidEQ(v bool) predicate.Visit
- func IsPaidIsNil() predicate.Visit
- func IsPaidNEQ(v bool) predicate.Visit
- func IsPaidNotNil() predicate.Visit
- func Not(p predicate.Visit) predicate.Visit
- func Or(predicates ...predicate.Visit) predicate.Visit
- func PaymentType(v string) predicate.Visit
- func PaymentTypeContains(v string) predicate.Visit
- func PaymentTypeContainsFold(v string) predicate.Visit
- func PaymentTypeEQ(v string) predicate.Visit
- func PaymentTypeEqualFold(v string) predicate.Visit
- func PaymentTypeGT(v string) predicate.Visit
- func PaymentTypeGTE(v string) predicate.Visit
- func PaymentTypeHasPrefix(v string) predicate.Visit
- func PaymentTypeHasSuffix(v string) predicate.Visit
- func PaymentTypeIn(vs ...string) predicate.Visit
- func PaymentTypeIsNil() predicate.Visit
- func PaymentTypeLT(v string) predicate.Visit
- func PaymentTypeLTE(v string) predicate.Visit
- func PaymentTypeNEQ(v string) predicate.Visit
- func PaymentTypeNotIn(vs ...string) predicate.Visit
- func PaymentTypeNotNil() predicate.Visit
- func UpdatedAt(v time.Time) predicate.Visit
- func UpdatedAtEQ(v time.Time) predicate.Visit
- func UpdatedAtGT(v time.Time) predicate.Visit
- func UpdatedAtGTE(v time.Time) predicate.Visit
- func UpdatedAtIn(vs ...time.Time) predicate.Visit
- func UpdatedAtIsNil() predicate.Visit
- func UpdatedAtLT(v time.Time) predicate.Visit
- func UpdatedAtLTE(v time.Time) predicate.Visit
- func UpdatedAtNEQ(v time.Time) predicate.Visit
- func UpdatedAtNotIn(vs ...time.Time) predicate.Visit
- func UpdatedAtNotNil() predicate.Visit
- func ValidColumn(column string) bool
- func VisitPrice(v string) predicate.Visit
- func VisitPriceContains(v string) predicate.Visit
- func VisitPriceContainsFold(v string) predicate.Visit
- func VisitPriceEQ(v string) predicate.Visit
- func VisitPriceEqualFold(v string) predicate.Visit
- func VisitPriceGT(v string) predicate.Visit
- func VisitPriceGTE(v string) predicate.Visit
- func VisitPriceHasPrefix(v string) predicate.Visit
- func VisitPriceHasSuffix(v string) predicate.Visit
- func VisitPriceIn(vs ...string) predicate.Visit
- func VisitPriceIsNil() predicate.Visit
- func VisitPriceLT(v string) predicate.Visit
- func VisitPriceLTE(v string) predicate.Visit
- func VisitPriceNEQ(v string) predicate.Visit
- func VisitPriceNotIn(vs ...string) predicate.Visit
- func VisitPriceNotNil() predicate.Visit
- func VisitedAt(v time.Time) predicate.Visit
- func VisitedAtEQ(v time.Time) predicate.Visit
- func VisitedAtGT(v time.Time) predicate.Visit
- func VisitedAtGTE(v time.Time) predicate.Visit
- func VisitedAtIn(vs ...time.Time) predicate.Visit
- func VisitedAtIsNil() predicate.Visit
- func VisitedAtLT(v time.Time) predicate.Visit
- func VisitedAtLTE(v time.Time) predicate.Visit
- func VisitedAtNEQ(v time.Time) predicate.Visit
- func VisitedAtNotIn(vs ...time.Time) predicate.Visit
- func VisitedAtNotNil() predicate.Visit
- type OrderOption
- func ByAttachment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAttachmentCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsPaid(opts ...sql.OrderTermOption) OrderOption
- func ByPaymentType(opts ...sql.OrderTermOption) OrderOption
- func ByReceptionField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVisitPrice(opts ...sql.OrderTermOption) OrderOption
- func ByVisitedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the visit type in the database. Label = "visit" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldVisitPrice holds the string denoting the visit_price field in the database. FieldVisitPrice = "visit_price" // FieldVisitedAt holds the string denoting the visited_at field in the database. FieldVisitedAt = "visited_at" // FieldPaymentType holds the string denoting the payment_type field in the database. FieldPaymentType = "payment_type" // FieldIsPaid holds the string denoting the is_paid field in the database. FieldIsPaid = "is_paid" // 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" // EdgeReception holds the string denoting the reception edge name in mutations. EdgeReception = "reception" // EdgeAttachment holds the string denoting the attachment edge name in mutations. EdgeAttachment = "attachment" // Table holds the table name of the visit in the database. Table = "visits" // ReceptionTable is the table that holds the reception relation/edge. ReceptionTable = "visits" // ReceptionInverseTable is the table name for the Reception entity. // It exists in this package in order to avoid circular dependency with the "reception" package. ReceptionInverseTable = "receptions" // ReceptionColumn is the table column denoting the reception relation/edge. ReceptionColumn = "reception_visit" // AttachmentTable is the table that holds the attachment relation/edge. AttachmentTable = "attachments" // AttachmentInverseTable is the table name for the Attachment entity. // It exists in this package in order to avoid circular dependency with the "attachment" package. AttachmentInverseTable = "attachments" // AttachmentColumn is the table column denoting the attachment relation/edge. AttachmentColumn = "visit_attachment" )
Variables ¶
var Columns = []string{ FieldID, FieldVisitPrice, FieldVisitedAt, FieldPaymentType, FieldIsPaid, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for visit fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt time.Time )
var ForeignKeys = []string{
"reception_visit",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "visits" table and are not defined as standalone fields in the schema.
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 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 DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil 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 DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasAttachment ¶
HasAttachment applies the HasEdge predicate on the "attachment" edge.
func HasAttachmentWith ¶
func HasAttachmentWith(preds ...predicate.Attachment) predicate.Visit
HasAttachmentWith applies the HasEdge predicate on the "attachment" edge with a given conditions (other predicates).
func HasReception ¶
HasReception applies the HasEdge predicate on the "reception" edge.
func HasReceptionWith ¶
HasReceptionWith applies the HasEdge predicate on the "reception" edge with a given conditions (other predicates).
func IsPaid ¶
IsPaid applies equality check predicate on the "is_paid" field. It's identical to IsPaidEQ.
func IsPaidIsNil ¶
IsPaidIsNil applies the IsNil predicate on the "is_paid" field.
func IsPaidNotNil ¶
IsPaidNotNil applies the NotNil predicate on the "is_paid" field.
func PaymentType ¶
PaymentType applies equality check predicate on the "payment_type" field. It's identical to PaymentTypeEQ.
func PaymentTypeContains ¶
PaymentTypeContains applies the Contains predicate on the "payment_type" field.
func PaymentTypeContainsFold ¶
PaymentTypeContainsFold applies the ContainsFold predicate on the "payment_type" field.
func PaymentTypeEQ ¶
PaymentTypeEQ applies the EQ predicate on the "payment_type" field.
func PaymentTypeEqualFold ¶
PaymentTypeEqualFold applies the EqualFold predicate on the "payment_type" field.
func PaymentTypeGT ¶
PaymentTypeGT applies the GT predicate on the "payment_type" field.
func PaymentTypeGTE ¶
PaymentTypeGTE applies the GTE predicate on the "payment_type" field.
func PaymentTypeHasPrefix ¶
PaymentTypeHasPrefix applies the HasPrefix predicate on the "payment_type" field.
func PaymentTypeHasSuffix ¶
PaymentTypeHasSuffix applies the HasSuffix predicate on the "payment_type" field.
func PaymentTypeIn ¶
PaymentTypeIn applies the In predicate on the "payment_type" field.
func PaymentTypeIsNil ¶
PaymentTypeIsNil applies the IsNil predicate on the "payment_type" field.
func PaymentTypeLT ¶
PaymentTypeLT applies the LT predicate on the "payment_type" field.
func PaymentTypeLTE ¶
PaymentTypeLTE applies the LTE predicate on the "payment_type" field.
func PaymentTypeNEQ ¶
PaymentTypeNEQ applies the NEQ predicate on the "payment_type" field.
func PaymentTypeNotIn ¶
PaymentTypeNotIn applies the NotIn predicate on the "payment_type" field.
func PaymentTypeNotNil ¶
PaymentTypeNotNil applies the NotNil predicate on the "payment_type" 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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VisitPrice ¶
VisitPrice applies equality check predicate on the "visit_price" field. It's identical to VisitPriceEQ.
func VisitPriceContains ¶
VisitPriceContains applies the Contains predicate on the "visit_price" field.
func VisitPriceContainsFold ¶
VisitPriceContainsFold applies the ContainsFold predicate on the "visit_price" field.
func VisitPriceEQ ¶
VisitPriceEQ applies the EQ predicate on the "visit_price" field.
func VisitPriceEqualFold ¶
VisitPriceEqualFold applies the EqualFold predicate on the "visit_price" field.
func VisitPriceGT ¶
VisitPriceGT applies the GT predicate on the "visit_price" field.
func VisitPriceGTE ¶
VisitPriceGTE applies the GTE predicate on the "visit_price" field.
func VisitPriceHasPrefix ¶
VisitPriceHasPrefix applies the HasPrefix predicate on the "visit_price" field.
func VisitPriceHasSuffix ¶
VisitPriceHasSuffix applies the HasSuffix predicate on the "visit_price" field.
func VisitPriceIn ¶
VisitPriceIn applies the In predicate on the "visit_price" field.
func VisitPriceIsNil ¶
VisitPriceIsNil applies the IsNil predicate on the "visit_price" field.
func VisitPriceLT ¶
VisitPriceLT applies the LT predicate on the "visit_price" field.
func VisitPriceLTE ¶
VisitPriceLTE applies the LTE predicate on the "visit_price" field.
func VisitPriceNEQ ¶
VisitPriceNEQ applies the NEQ predicate on the "visit_price" field.
func VisitPriceNotIn ¶
VisitPriceNotIn applies the NotIn predicate on the "visit_price" field.
func VisitPriceNotNil ¶
VisitPriceNotNil applies the NotNil predicate on the "visit_price" field.
func VisitedAt ¶
VisitedAt applies equality check predicate on the "visited_at" field. It's identical to VisitedAtEQ.
func VisitedAtEQ ¶
VisitedAtEQ applies the EQ predicate on the "visited_at" field.
func VisitedAtGT ¶
VisitedAtGT applies the GT predicate on the "visited_at" field.
func VisitedAtGTE ¶
VisitedAtGTE applies the GTE predicate on the "visited_at" field.
func VisitedAtIn ¶
VisitedAtIn applies the In predicate on the "visited_at" field.
func VisitedAtIsNil ¶
VisitedAtIsNil applies the IsNil predicate on the "visited_at" field.
func VisitedAtLT ¶
VisitedAtLT applies the LT predicate on the "visited_at" field.
func VisitedAtLTE ¶
VisitedAtLTE applies the LTE predicate on the "visited_at" field.
func VisitedAtNEQ ¶
VisitedAtNEQ applies the NEQ predicate on the "visited_at" field.
func VisitedAtNotIn ¶
VisitedAtNotIn applies the NotIn predicate on the "visited_at" field.
func VisitedAtNotNil ¶
VisitedAtNotNil applies the NotNil predicate on the "visited_at" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Visit queries.
func ByAttachment ¶
func ByAttachment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAttachment orders the results by attachment terms.
func ByAttachmentCount ¶
func ByAttachmentCount(opts ...sql.OrderTermOption) OrderOption
ByAttachmentCount orders the results by attachment count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsPaid ¶
func ByIsPaid(opts ...sql.OrderTermOption) OrderOption
ByIsPaid orders the results by the is_paid field.
func ByPaymentType ¶
func ByPaymentType(opts ...sql.OrderTermOption) OrderOption
ByPaymentType orders the results by the payment_type field.
func ByReceptionField ¶
func ByReceptionField(field string, opts ...sql.OrderTermOption) OrderOption
ByReceptionField orders the results by reception field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVisitPrice ¶
func ByVisitPrice(opts ...sql.OrderTermOption) OrderOption
ByVisitPrice orders the results by the visit_price field.
func ByVisitedAt ¶
func ByVisitedAt(opts ...sql.OrderTermOption) OrderOption
ByVisitedAt orders the results by the visited_at field.