note

package
v1.0.1-a Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the note type in the database.
	Label = "note"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// 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"
	// EdgeCustomer holds the string denoting the customer edge name in mutations.
	EdgeCustomer = "customer"
	// EdgeOrders holds the string denoting the orders edge name in mutations.
	EdgeOrders = "orders"
	// EdgeBillingAddress holds the string denoting the billing_address edge name in mutations.
	EdgeBillingAddress = "billing_address"
	// EdgeDeliveryAddress holds the string denoting the delivery_address edge name in mutations.
	EdgeDeliveryAddress = "delivery_address"
	// EdgeTel holds the string denoting the tel edge name in mutations.
	EdgeTel = "tel"
	// Table holds the table name of the note in the database.
	Table = "notes"
	// CustomerTable is the table that holds the customer relation/edge.
	CustomerTable = "notes"
	// CustomerInverseTable is the table name for the Customer entity.
	// It exists in this package in order to avoid circular dependency with the "customer" package.
	CustomerInverseTable = "customers"
	// CustomerColumn is the table column denoting the customer relation/edge.
	CustomerColumn = "customer_notes"
	// OrdersTable is the table that holds the orders relation/edge.
	OrdersTable = "notes"
	// OrdersInverseTable is the table name for the Order entity.
	// It exists in this package in order to avoid circular dependency with the "order" package.
	OrdersInverseTable = "orders"
	// OrdersColumn is the table column denoting the orders relation/edge.
	OrdersColumn = "order_notes"
	// BillingAddressTable is the table that holds the billing_address relation/edge.
	BillingAddressTable = "notes"
	// BillingAddressInverseTable is the table name for the BillingAddress entity.
	// It exists in this package in order to avoid circular dependency with the "billingaddress" package.
	BillingAddressInverseTable = "billing_addresses"
	// BillingAddressColumn is the table column denoting the billing_address relation/edge.
	BillingAddressColumn = "billing_address_notes"
	// DeliveryAddressTable is the table that holds the delivery_address relation/edge.
	DeliveryAddressTable = "notes"
	// DeliveryAddressInverseTable is the table name for the DeliveryAddress entity.
	// It exists in this package in order to avoid circular dependency with the "deliveryaddress" package.
	DeliveryAddressInverseTable = "delivery_addresses"
	// DeliveryAddressColumn is the table column denoting the delivery_address relation/edge.
	DeliveryAddressColumn = "delivery_address_notes"
	// TelTable is the table that holds the tel relation/edge.
	TelTable = "notes"
	// TelInverseTable is the table name for the Tel entity.
	// It exists in this package in order to avoid circular dependency with the "tel" package.
	TelInverseTable = "tels"
	// TelColumn is the table column denoting the tel relation/edge.
	TelColumn = "tel_note"
)

Variables

View Source
var (
	// 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
)

Columns holds all SQL columns for note fields.

View Source
var ForeignKeys = []string{
	"billing_address_notes",
	"customer_notes",
	"delivery_address_notes",
	"order_notes",
	"tel_note",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "notes" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Note) predicate.Note

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.Note

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Note

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Note

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.Note

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Note

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.Note

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.Note

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Note

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Note

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Note

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Note

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.Note

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Note

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Note

ContentNotIn applies the NotIn predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Note

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Note

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Note

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Note

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Note

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Note

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Note

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

func CreatedAtNotIn

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

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

func HasBillingAddress

func HasBillingAddress() predicate.Note

HasBillingAddress applies the HasEdge predicate on the "billing_address" edge.

func HasBillingAddressWith

func HasBillingAddressWith(preds ...predicate.BillingAddress) predicate.Note

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

func HasCustomer

func HasCustomer() predicate.Note

HasCustomer applies the HasEdge predicate on the "customer" edge.

func HasCustomerWith

func HasCustomerWith(preds ...predicate.Customer) predicate.Note

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

func HasDeliveryAddress

func HasDeliveryAddress() predicate.Note

HasDeliveryAddress applies the HasEdge predicate on the "delivery_address" edge.

func HasDeliveryAddressWith

func HasDeliveryAddressWith(preds ...predicate.DeliveryAddress) predicate.Note

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

func HasOrders

func HasOrders() predicate.Note

HasOrders applies the HasEdge predicate on the "orders" edge.

func HasOrdersWith

func HasOrdersWith(preds ...predicate.Order) predicate.Note

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

func HasTel

func HasTel() predicate.Note

HasTel applies the HasEdge predicate on the "tel" edge.

func HasTelWith

func HasTelWith(preds ...predicate.Tel) predicate.Note

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

func ID

func ID(id int) predicate.Note

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Note

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Note

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Note

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Note

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Note

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Note

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Note) predicate.Note

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Note

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Note

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Note

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Note

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Note

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Note

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Note

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn 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).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Note queries.

func ByBillingAddressField

func ByBillingAddressField(field string, opts ...sql.OrderTermOption) OrderOption

ByBillingAddressField orders the results by billing_address field.

func ByContent

func ByContent(opts ...sql.OrderTermOption) OrderOption

ByContent orders the results by the content field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCustomerField

func ByCustomerField(field string, opts ...sql.OrderTermOption) OrderOption

ByCustomerField orders the results by customer field.

func ByDeliveryAddressField

func ByDeliveryAddressField(field string, opts ...sql.OrderTermOption) OrderOption

ByDeliveryAddressField orders the results by delivery_address field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByOrdersField

func ByOrdersField(field string, opts ...sql.OrderTermOption) OrderOption

ByOrdersField orders the results by orders field.

func ByTelField

func ByTelField(field string, opts ...sql.OrderTermOption) OrderOption

ByTelField orders the results by tel field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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