visit

package
v0.0.0-...-61914f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for visit fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
)
View Source
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 And

func And(predicates ...predicate.Visit) predicate.Visit

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Visit

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Visit

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Visit

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Visit

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Visit

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Visit

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Visit

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Visit

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Visit

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Visit

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Visit

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Visit

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Visit

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Visit

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Visit

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Visit

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Visit

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Visit

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Visit

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Visit

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func HasAttachment

func HasAttachment() predicate.Visit

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

func HasReception() predicate.Visit

HasReception applies the HasEdge predicate on the "reception" edge.

func HasReceptionWith

func HasReceptionWith(preds ...predicate.Reception) predicate.Visit

HasReceptionWith applies the HasEdge predicate on the "reception" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Visit

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Visit

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Visit

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Visit

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Visit

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Visit

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Visit

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Visit

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Visit

IDNotIn applies the NotIn predicate on the ID field.

func IsPaid

func IsPaid(v bool) predicate.Visit

IsPaid applies equality check predicate on the "is_paid" field. It's identical to IsPaidEQ.

func IsPaidEQ

func IsPaidEQ(v bool) predicate.Visit

IsPaidEQ applies the EQ predicate on the "is_paid" field.

func IsPaidIsNil

func IsPaidIsNil() predicate.Visit

IsPaidIsNil applies the IsNil predicate on the "is_paid" field.

func IsPaidNEQ

func IsPaidNEQ(v bool) predicate.Visit

IsPaidNEQ applies the NEQ predicate on the "is_paid" field.

func IsPaidNotNil

func IsPaidNotNil() predicate.Visit

IsPaidNotNil applies the NotNil predicate on the "is_paid" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Visit) predicate.Visit

Or groups predicates with the OR operator between them.

func PaymentType

func PaymentType(v string) predicate.Visit

PaymentType applies equality check predicate on the "payment_type" field. It's identical to PaymentTypeEQ.

func PaymentTypeContains

func PaymentTypeContains(v string) predicate.Visit

PaymentTypeContains applies the Contains predicate on the "payment_type" field.

func PaymentTypeContainsFold

func PaymentTypeContainsFold(v string) predicate.Visit

PaymentTypeContainsFold applies the ContainsFold predicate on the "payment_type" field.

func PaymentTypeEQ

func PaymentTypeEQ(v string) predicate.Visit

PaymentTypeEQ applies the EQ predicate on the "payment_type" field.

func PaymentTypeEqualFold

func PaymentTypeEqualFold(v string) predicate.Visit

PaymentTypeEqualFold applies the EqualFold predicate on the "payment_type" field.

func PaymentTypeGT

func PaymentTypeGT(v string) predicate.Visit

PaymentTypeGT applies the GT predicate on the "payment_type" field.

func PaymentTypeGTE

func PaymentTypeGTE(v string) predicate.Visit

PaymentTypeGTE applies the GTE predicate on the "payment_type" field.

func PaymentTypeHasPrefix

func PaymentTypeHasPrefix(v string) predicate.Visit

PaymentTypeHasPrefix applies the HasPrefix predicate on the "payment_type" field.

func PaymentTypeHasSuffix

func PaymentTypeHasSuffix(v string) predicate.Visit

PaymentTypeHasSuffix applies the HasSuffix predicate on the "payment_type" field.

func PaymentTypeIn

func PaymentTypeIn(vs ...string) predicate.Visit

PaymentTypeIn applies the In predicate on the "payment_type" field.

func PaymentTypeIsNil

func PaymentTypeIsNil() predicate.Visit

PaymentTypeIsNil applies the IsNil predicate on the "payment_type" field.

func PaymentTypeLT

func PaymentTypeLT(v string) predicate.Visit

PaymentTypeLT applies the LT predicate on the "payment_type" field.

func PaymentTypeLTE

func PaymentTypeLTE(v string) predicate.Visit

PaymentTypeLTE applies the LTE predicate on the "payment_type" field.

func PaymentTypeNEQ

func PaymentTypeNEQ(v string) predicate.Visit

PaymentTypeNEQ applies the NEQ predicate on the "payment_type" field.

func PaymentTypeNotIn

func PaymentTypeNotIn(vs ...string) predicate.Visit

PaymentTypeNotIn applies the NotIn predicate on the "payment_type" field.

func PaymentTypeNotNil

func PaymentTypeNotNil() predicate.Visit

PaymentTypeNotNil applies the NotNil predicate on the "payment_type" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Visit

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Visit

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Visit

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Visit

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Visit

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Visit

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Visit

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Visit

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Visit

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Visit

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Visit

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func VisitPrice

func VisitPrice(v string) predicate.Visit

VisitPrice applies equality check predicate on the "visit_price" field. It's identical to VisitPriceEQ.

func VisitPriceContains

func VisitPriceContains(v string) predicate.Visit

VisitPriceContains applies the Contains predicate on the "visit_price" field.

func VisitPriceContainsFold

func VisitPriceContainsFold(v string) predicate.Visit

VisitPriceContainsFold applies the ContainsFold predicate on the "visit_price" field.

func VisitPriceEQ

func VisitPriceEQ(v string) predicate.Visit

VisitPriceEQ applies the EQ predicate on the "visit_price" field.

func VisitPriceEqualFold

func VisitPriceEqualFold(v string) predicate.Visit

VisitPriceEqualFold applies the EqualFold predicate on the "visit_price" field.

func VisitPriceGT

func VisitPriceGT(v string) predicate.Visit

VisitPriceGT applies the GT predicate on the "visit_price" field.

func VisitPriceGTE

func VisitPriceGTE(v string) predicate.Visit

VisitPriceGTE applies the GTE predicate on the "visit_price" field.

func VisitPriceHasPrefix

func VisitPriceHasPrefix(v string) predicate.Visit

VisitPriceHasPrefix applies the HasPrefix predicate on the "visit_price" field.

func VisitPriceHasSuffix

func VisitPriceHasSuffix(v string) predicate.Visit

VisitPriceHasSuffix applies the HasSuffix predicate on the "visit_price" field.

func VisitPriceIn

func VisitPriceIn(vs ...string) predicate.Visit

VisitPriceIn applies the In predicate on the "visit_price" field.

func VisitPriceIsNil

func VisitPriceIsNil() predicate.Visit

VisitPriceIsNil applies the IsNil predicate on the "visit_price" field.

func VisitPriceLT

func VisitPriceLT(v string) predicate.Visit

VisitPriceLT applies the LT predicate on the "visit_price" field.

func VisitPriceLTE

func VisitPriceLTE(v string) predicate.Visit

VisitPriceLTE applies the LTE predicate on the "visit_price" field.

func VisitPriceNEQ

func VisitPriceNEQ(v string) predicate.Visit

VisitPriceNEQ applies the NEQ predicate on the "visit_price" field.

func VisitPriceNotIn

func VisitPriceNotIn(vs ...string) predicate.Visit

VisitPriceNotIn applies the NotIn predicate on the "visit_price" field.

func VisitPriceNotNil

func VisitPriceNotNil() predicate.Visit

VisitPriceNotNil applies the NotNil predicate on the "visit_price" field.

func VisitedAt

func VisitedAt(v time.Time) predicate.Visit

VisitedAt applies equality check predicate on the "visited_at" field. It's identical to VisitedAtEQ.

func VisitedAtEQ

func VisitedAtEQ(v time.Time) predicate.Visit

VisitedAtEQ applies the EQ predicate on the "visited_at" field.

func VisitedAtGT

func VisitedAtGT(v time.Time) predicate.Visit

VisitedAtGT applies the GT predicate on the "visited_at" field.

func VisitedAtGTE

func VisitedAtGTE(v time.Time) predicate.Visit

VisitedAtGTE applies the GTE predicate on the "visited_at" field.

func VisitedAtIn

func VisitedAtIn(vs ...time.Time) predicate.Visit

VisitedAtIn applies the In predicate on the "visited_at" field.

func VisitedAtIsNil

func VisitedAtIsNil() predicate.Visit

VisitedAtIsNil applies the IsNil predicate on the "visited_at" field.

func VisitedAtLT

func VisitedAtLT(v time.Time) predicate.Visit

VisitedAtLT applies the LT predicate on the "visited_at" field.

func VisitedAtLTE

func VisitedAtLTE(v time.Time) predicate.Visit

VisitedAtLTE applies the LTE predicate on the "visited_at" field.

func VisitedAtNEQ

func VisitedAtNEQ(v time.Time) predicate.Visit

VisitedAtNEQ applies the NEQ predicate on the "visited_at" field.

func VisitedAtNotIn

func VisitedAtNotIn(vs ...time.Time) predicate.Visit

VisitedAtNotIn applies the NotIn predicate on the "visited_at" field.

func VisitedAtNotNil

func VisitedAtNotNil() predicate.Visit

VisitedAtNotNil applies the NotNil predicate on the "visited_at" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL