chatentry

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the chatentry type in the database.
	Label = "chat_entry"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldConversationID holds the string denoting the conversation_id field in the database.
	FieldConversationID = "conversation_id"
	// FieldTurnID holds the string denoting the turn_id field in the database.
	FieldTurnID = "turn_id"
	// FieldSeq holds the string denoting the seq field in the database.
	FieldSeq = "seq"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldPayloadJSON holds the string denoting the payload_json field in the database.
	FieldPayloadJSON = "payload_json"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeConversation holds the string denoting the conversation edge name in mutations.
	EdgeConversation = "conversation"
	// EdgeTurn holds the string denoting the turn edge name in mutations.
	EdgeTurn = "turn"
	// Table holds the table name of the chatentry in the database.
	Table = "chat_entries"
	// ConversationTable is the table that holds the conversation relation/edge.
	ConversationTable = "chat_entries"
	// ConversationInverseTable is the table name for the ChatConversation entity.
	// It exists in this package in order to avoid circular dependency with the "chatconversation" package.
	ConversationInverseTable = "chat_conversations"
	// ConversationColumn is the table column denoting the conversation relation/edge.
	ConversationColumn = "conversation_id"
	// TurnTable is the table that holds the turn relation/edge.
	TurnTable = "chat_entries"
	// TurnInverseTable is the table name for the ChatTurn entity.
	// It exists in this package in order to avoid circular dependency with the "chatturn" package.
	TurnInverseTable = "chat_turns"
	// TurnColumn is the table column denoting the turn relation/edge.
	TurnColumn = "turn_id"
)

Variables

View Source
var (
	// SeqValidator is a validator for the "seq" field. It is called by the builders before save.
	SeqValidator func(int) error
	// KindValidator is a validator for the "kind" field. It is called by the builders before save.
	KindValidator func(string) error
	// DefaultPayloadJSON holds the default value on creation for the "payload_json" field.
	DefaultPayloadJSON func() map[string]interface{}
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for chatentry fields.

Functions

func And

func And(predicates ...predicate.ChatEntry) predicate.ChatEntry

And groups predicates with the AND operator between them.

func ConversationID

func ConversationID(v uuid.UUID) predicate.ChatEntry

ConversationID applies equality check predicate on the "conversation_id" field. It's identical to ConversationIDEQ.

func ConversationIDEQ

func ConversationIDEQ(v uuid.UUID) predicate.ChatEntry

ConversationIDEQ applies the EQ predicate on the "conversation_id" field.

func ConversationIDIn

func ConversationIDIn(vs ...uuid.UUID) predicate.ChatEntry

ConversationIDIn applies the In predicate on the "conversation_id" field.

func ConversationIDNEQ

func ConversationIDNEQ(v uuid.UUID) predicate.ChatEntry

ConversationIDNEQ applies the NEQ predicate on the "conversation_id" field.

func ConversationIDNotIn

func ConversationIDNotIn(vs ...uuid.UUID) predicate.ChatEntry

ConversationIDNotIn applies the NotIn predicate on the "conversation_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.ChatEntry

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ChatEntry

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ChatEntry

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ChatEntry

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ChatEntry

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ChatEntry

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ChatEntry

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

func CreatedAtNotIn

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

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

func HasConversation

func HasConversation() predicate.ChatEntry

HasConversation applies the HasEdge predicate on the "conversation" edge.

func HasConversationWith

func HasConversationWith(preds ...predicate.ChatConversation) predicate.ChatEntry

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

func HasTurn

func HasTurn() predicate.ChatEntry

HasTurn applies the HasEdge predicate on the "turn" edge.

func HasTurnWith

func HasTurnWith(preds ...predicate.ChatTurn) predicate.ChatEntry

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.ChatEntry

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.ChatEntry

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ChatEntry

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.ChatEntry

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.ChatEntry

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ChatEntry

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ChatEntry

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.ChatEntry

IDNotIn applies the NotIn predicate on the ID field.

func Kind

func Kind(v string) predicate.ChatEntry

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

func KindContains(v string) predicate.ChatEntry

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v string) predicate.ChatEntry

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

func KindEQ(v string) predicate.ChatEntry

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v string) predicate.ChatEntry

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

func KindGT(v string) predicate.ChatEntry

KindGT applies the GT predicate on the "kind" field.

func KindGTE

func KindGTE(v string) predicate.ChatEntry

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v string) predicate.ChatEntry

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v string) predicate.ChatEntry

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

func KindIn(vs ...string) predicate.ChatEntry

KindIn applies the In predicate on the "kind" field.

func KindLT

func KindLT(v string) predicate.ChatEntry

KindLT applies the LT predicate on the "kind" field.

func KindLTE

func KindLTE(v string) predicate.ChatEntry

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

func KindNEQ(v string) predicate.ChatEntry

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...string) predicate.ChatEntry

KindNotIn applies the NotIn predicate on the "kind" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ChatEntry) predicate.ChatEntry

Or groups predicates with the OR operator between them.

func Seq

func Seq(v int) predicate.ChatEntry

Seq applies equality check predicate on the "seq" field. It's identical to SeqEQ.

func SeqEQ

func SeqEQ(v int) predicate.ChatEntry

SeqEQ applies the EQ predicate on the "seq" field.

func SeqGT

func SeqGT(v int) predicate.ChatEntry

SeqGT applies the GT predicate on the "seq" field.

func SeqGTE

func SeqGTE(v int) predicate.ChatEntry

SeqGTE applies the GTE predicate on the "seq" field.

func SeqIn

func SeqIn(vs ...int) predicate.ChatEntry

SeqIn applies the In predicate on the "seq" field.

func SeqLT

func SeqLT(v int) predicate.ChatEntry

SeqLT applies the LT predicate on the "seq" field.

func SeqLTE

func SeqLTE(v int) predicate.ChatEntry

SeqLTE applies the LTE predicate on the "seq" field.

func SeqNEQ

func SeqNEQ(v int) predicate.ChatEntry

SeqNEQ applies the NEQ predicate on the "seq" field.

func SeqNotIn

func SeqNotIn(vs ...int) predicate.ChatEntry

SeqNotIn applies the NotIn predicate on the "seq" field.

func TurnID

func TurnID(v uuid.UUID) predicate.ChatEntry

TurnID applies equality check predicate on the "turn_id" field. It's identical to TurnIDEQ.

func TurnIDEQ

func TurnIDEQ(v uuid.UUID) predicate.ChatEntry

TurnIDEQ applies the EQ predicate on the "turn_id" field.

func TurnIDIn

func TurnIDIn(vs ...uuid.UUID) predicate.ChatEntry

TurnIDIn applies the In predicate on the "turn_id" field.

func TurnIDIsNil

func TurnIDIsNil() predicate.ChatEntry

TurnIDIsNil applies the IsNil predicate on the "turn_id" field.

func TurnIDNEQ

func TurnIDNEQ(v uuid.UUID) predicate.ChatEntry

TurnIDNEQ applies the NEQ predicate on the "turn_id" field.

func TurnIDNotIn

func TurnIDNotIn(vs ...uuid.UUID) predicate.ChatEntry

TurnIDNotIn applies the NotIn predicate on the "turn_id" field.

func TurnIDNotNil

func TurnIDNotNil() predicate.ChatEntry

TurnIDNotNil applies the NotNil predicate on the "turn_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 ChatEntry queries.

func ByConversationField

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

ByConversationField orders the results by conversation field.

func ByConversationID

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

ByConversationID orders the results by the conversation_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByKind

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

ByKind orders the results by the kind field.

func BySeq

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

BySeq orders the results by the seq field.

func ByTurnField

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

ByTurnField orders the results by turn field.

func ByTurnID

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

ByTurnID orders the results by the turn_id field.

Jump to

Keyboard shortcuts

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