collaboration

package
v0.0.0-...-08f7c2a Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the collaboration type in the database.
	Label = "collaboration"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldMemoID holds the string denoting the memo_id field in the database.
	FieldMemoID = "memo_id"
	// FieldApproved holds the string denoting the approved field in the database.
	FieldApproved = "approved"
	// 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"
	// EdgeCollaborator holds the string denoting the collaborator edge name in mutations.
	EdgeCollaborator = "collaborator"
	// EdgeMemo holds the string denoting the memo edge name in mutations.
	EdgeMemo = "memo"
	// Table holds the table name of the collaboration in the database.
	Table = "collaborations"
	// CollaboratorTable is the table that holds the collaborator relation/edge.
	CollaboratorTable = "collaborations"
	// CollaboratorInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	CollaboratorInverseTable = "users"
	// CollaboratorColumn is the table column denoting the collaborator relation/edge.
	CollaboratorColumn = "user_id"
	// MemoTable is the table that holds the memo relation/edge.
	MemoTable = "collaborations"
	// MemoInverseTable is the table name for the Memo entity.
	// It exists in this package in order to avoid circular dependency with the "memo" package.
	MemoInverseTable = "memos"
	// MemoColumn is the table column denoting the memo relation/edge.
	MemoColumn = "memo_id"
)

Variables

View Source
var (
	// DefaultApproved holds the default value on creation for the "approved" field.
	DefaultApproved bool
	// 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
)

Columns holds all SQL columns for collaboration fields.

Functions

func And

And groups predicates with the AND operator between them.

func Approved

func Approved(v bool) predicate.Collaboration

Approved applies equality check predicate on the "approved" field. It's identical to ApprovedEQ.

func ApprovedEQ

func ApprovedEQ(v bool) predicate.Collaboration

ApprovedEQ applies the EQ predicate on the "approved" field.

func ApprovedNEQ

func ApprovedNEQ(v bool) predicate.Collaboration

ApprovedNEQ applies the NEQ predicate on the "approved" field.

func CreateTime

func CreateTime(v time.Time) predicate.Collaboration

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Collaboration

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Collaboration

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Collaboration

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Collaboration

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Collaboration

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Collaboration

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

func CreateTimeNotIn

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

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

func HasCollaborator

func HasCollaborator() predicate.Collaboration

HasCollaborator applies the HasEdge predicate on the "collaborator" edge.

func HasCollaboratorWith

func HasCollaboratorWith(preds ...predicate.User) predicate.Collaboration

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

func HasMemo

func HasMemo() predicate.Collaboration

HasMemo applies the HasEdge predicate on the "memo" edge.

func HasMemoWith

func HasMemoWith(preds ...predicate.Memo) predicate.Collaboration

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Collaboration

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Collaboration

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Collaboration

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Collaboration

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Collaboration

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Collaboration

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MemoID

func MemoID(v uuid.UUID) predicate.Collaboration

MemoID applies equality check predicate on the "memo_id" field. It's identical to MemoIDEQ.

func MemoIDEQ

func MemoIDEQ(v uuid.UUID) predicate.Collaboration

MemoIDEQ applies the EQ predicate on the "memo_id" field.

func MemoIDIn

func MemoIDIn(vs ...uuid.UUID) predicate.Collaboration

MemoIDIn applies the In predicate on the "memo_id" field.

func MemoIDNEQ

func MemoIDNEQ(v uuid.UUID) predicate.Collaboration

MemoIDNEQ applies the NEQ predicate on the "memo_id" field.

func MemoIDNotIn

func MemoIDNotIn(vs ...uuid.UUID) predicate.Collaboration

MemoIDNotIn applies the NotIn predicate on the "memo_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func UpdateTime

func UpdateTime(v time.Time) predicate.Collaboration

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Collaboration

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Collaboration

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Collaboration

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Collaboration

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Collaboration

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Collaboration

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

func UpdateTimeNotIn

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

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UserID

func UserID(v uuid.UUID) predicate.Collaboration

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.Collaboration

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.Collaboration

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.Collaboration

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.Collaboration

UserIDNotIn applies the NotIn predicate on the "user_id" 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 Collaboration queries.

func ByApproved

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

ByApproved orders the results by the approved field.

func ByCollaboratorField

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

ByCollaboratorField orders the results by collaborator field.

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 ByMemoField

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

ByMemoField orders the results by memo field.

func ByMemoID

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

ByMemoID orders the results by the memo_id field.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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