usernote

package
v0.0.0-...-f0d0762 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the usernote type in the database.
	Label = "user_note"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldLabel holds the string denoting the label field in the database.
	FieldLabel = "label"
	// FieldMemo holds the string denoting the memo field in the database.
	FieldMemo = "memo"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeNoteItems holds the string denoting the noteitems edge name in mutations.
	EdgeNoteItems = "noteItems"
	// Table holds the table name of the usernote in the database.
	Table = "user_notes"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "user_notes"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
	// NoteItemsTable is the table that holds the noteItems relation/edge.
	NoteItemsTable = "user_note_items"
	// NoteItemsInverseTable is the table name for the UserNoteItem entity.
	// It exists in this package in order to avoid circular dependency with the "usernoteitem" package.
	NoteItemsInverseTable = "user_note_items"
	// NoteItemsColumn is the table column denoting the noteItems relation/edge.
	NoteItemsColumn = "user_note_id"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// LabelValidator is a validator for the "label" field. It is called by the builders before save.
	LabelValidator func(string) error
	// MemoValidator is a validator for the "memo" field. It is called by the builders before save.
	MemoValidator func(string) error
)

Columns holds all SQL columns for usernote fields.

View Source
var ForeignKeys = []string{
	"user_id",
}

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

Functions

func And

func And(predicates ...predicate.UserNote) predicate.UserNote

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.UserNote

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.UserNote

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.UserNote

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.UserNote

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.UserNote

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.UserNote

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.UserNote

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.UserNote

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.UserNote

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasNoteItems

func HasNoteItems() predicate.UserNote

HasNoteItems applies the HasEdge predicate on the "noteItems" edge.

func HasNoteItemsWith

func HasNoteItemsWith(preds ...predicate.UserNoteItem) predicate.UserNote

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

func HasUser

func HasUser() predicate.UserNote

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.UserNote

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

func ID

func ID(id int) predicate.UserNote

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UserNote

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UserNote

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UserNote

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UserNote

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UserNote

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UserNote

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LabelContains

func LabelContains(v string) predicate.UserNote

LabelContains applies the Contains predicate on the "label" field.

func LabelContainsFold

func LabelContainsFold(v string) predicate.UserNote

LabelContainsFold applies the ContainsFold predicate on the "label" field.

func LabelEQ

func LabelEQ(v string) predicate.UserNote

LabelEQ applies the EQ predicate on the "label" field.

func LabelEqualFold

func LabelEqualFold(v string) predicate.UserNote

LabelEqualFold applies the EqualFold predicate on the "label" field.

func LabelGT

func LabelGT(v string) predicate.UserNote

LabelGT applies the GT predicate on the "label" field.

func LabelGTE

func LabelGTE(v string) predicate.UserNote

LabelGTE applies the GTE predicate on the "label" field.

func LabelHasPrefix

func LabelHasPrefix(v string) predicate.UserNote

LabelHasPrefix applies the HasPrefix predicate on the "label" field.

func LabelHasSuffix

func LabelHasSuffix(v string) predicate.UserNote

LabelHasSuffix applies the HasSuffix predicate on the "label" field.

func LabelIn

func LabelIn(vs ...string) predicate.UserNote

LabelIn applies the In predicate on the "label" field.

func LabelLT

func LabelLT(v string) predicate.UserNote

LabelLT applies the LT predicate on the "label" field.

func LabelLTE

func LabelLTE(v string) predicate.UserNote

LabelLTE applies the LTE predicate on the "label" field.

func LabelNEQ

func LabelNEQ(v string) predicate.UserNote

LabelNEQ applies the NEQ predicate on the "label" field.

func LabelNotIn

func LabelNotIn(vs ...string) predicate.UserNote

LabelNotIn applies the NotIn predicate on the "label" field.

func Memo

func Memo(v string) predicate.UserNote

Memo applies equality check predicate on the "memo" field. It's identical to MemoEQ.

func MemoContains

func MemoContains(v string) predicate.UserNote

MemoContains applies the Contains predicate on the "memo" field.

func MemoContainsFold

func MemoContainsFold(v string) predicate.UserNote

MemoContainsFold applies the ContainsFold predicate on the "memo" field.

func MemoEQ

func MemoEQ(v string) predicate.UserNote

MemoEQ applies the EQ predicate on the "memo" field.

func MemoEqualFold

func MemoEqualFold(v string) predicate.UserNote

MemoEqualFold applies the EqualFold predicate on the "memo" field.

func MemoGT

func MemoGT(v string) predicate.UserNote

MemoGT applies the GT predicate on the "memo" field.

func MemoGTE

func MemoGTE(v string) predicate.UserNote

MemoGTE applies the GTE predicate on the "memo" field.

func MemoHasPrefix

func MemoHasPrefix(v string) predicate.UserNote

MemoHasPrefix applies the HasPrefix predicate on the "memo" field.

func MemoHasSuffix

func MemoHasSuffix(v string) predicate.UserNote

MemoHasSuffix applies the HasSuffix predicate on the "memo" field.

func MemoIn

func MemoIn(vs ...string) predicate.UserNote

MemoIn applies the In predicate on the "memo" field.

func MemoIsNil

func MemoIsNil() predicate.UserNote

MemoIsNil applies the IsNil predicate on the "memo" field.

func MemoLT

func MemoLT(v string) predicate.UserNote

MemoLT applies the LT predicate on the "memo" field.

func MemoLTE

func MemoLTE(v string) predicate.UserNote

MemoLTE applies the LTE predicate on the "memo" field.

func MemoNEQ

func MemoNEQ(v string) predicate.UserNote

MemoNEQ applies the NEQ predicate on the "memo" field.

func MemoNotIn

func MemoNotIn(vs ...string) predicate.UserNote

MemoNotIn applies the NotIn predicate on the "memo" field.

func MemoNotNil

func MemoNotNil() predicate.UserNote

MemoNotNil applies the NotNil predicate on the "memo" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UserNote) predicate.UserNote

Or groups predicates with the OR operator between them.

func UpdateTime

func UpdateTime(v time.Time) predicate.UserNote

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.UserNote

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.UserNote

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.UserNote

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.UserNote

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.UserNote

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.UserNote

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.UserNote

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.UserNote

UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 UserNote queries.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByID

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

ByID orders the results by the id field.

func ByLabel

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

ByLabel orders the results by the label field.

func ByMemo

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

ByMemo orders the results by the memo field.

func ByNoteItems

func ByNoteItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNoteItems orders the results by noteItems terms.

func ByNoteItemsCount

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

ByNoteItemsCount orders the results by noteItems count.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

func ByUserField

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

ByUserField orders the results by user field.

Jump to

Keyboard shortcuts

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