chatturn

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the chatturn type in the database.
	Label = "chat_turn"
	// 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"
	// FieldTurnIndex holds the string denoting the turn_index field in the database.
	FieldTurnIndex = "turn_index"
	// FieldProviderTurnID holds the string denoting the provider_turn_id field in the database.
	FieldProviderTurnID = "provider_turn_id"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldCompletedAt holds the string denoting the completed_at field in the database.
	FieldCompletedAt = "completed_at"
	// 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"
	// EdgeConversation holds the string denoting the conversation edge name in mutations.
	EdgeConversation = "conversation"
	// EdgeEntries holds the string denoting the entries edge name in mutations.
	EdgeEntries = "entries"
	// EdgePendingInterrupts holds the string denoting the pending_interrupts edge name in mutations.
	EdgePendingInterrupts = "pending_interrupts"
	// Table holds the table name of the chatturn in the database.
	Table = "chat_turns"
	// ConversationTable is the table that holds the conversation relation/edge.
	ConversationTable = "chat_turns"
	// 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"
	// EntriesTable is the table that holds the entries relation/edge.
	EntriesTable = "chat_entries"
	// EntriesInverseTable is the table name for the ChatEntry entity.
	// It exists in this package in order to avoid circular dependency with the "chatentry" package.
	EntriesInverseTable = "chat_entries"
	// EntriesColumn is the table column denoting the entries relation/edge.
	EntriesColumn = "turn_id"
	// PendingInterruptsTable is the table that holds the pending_interrupts relation/edge.
	PendingInterruptsTable = "chat_pending_interrupts"
	// PendingInterruptsInverseTable is the table name for the ChatPendingInterrupt entity.
	// It exists in this package in order to avoid circular dependency with the "chatpendinginterrupt" package.
	PendingInterruptsInverseTable = "chat_pending_interrupts"
	// PendingInterruptsColumn is the table column denoting the pending_interrupts relation/edge.
	PendingInterruptsColumn = "turn_id"
)

Variables

View Source
var (
	// TurnIndexValidator is a validator for the "turn_index" field. It is called by the builders before save.
	TurnIndexValidator func(int) error
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// DefaultStartedAt holds the default value on creation for the "started_at" field.
	DefaultStartedAt func() time.Time
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for chatturn fields.

Functions

func And

func And(predicates ...predicate.ChatTurn) predicate.ChatTurn

And groups predicates with the AND operator between them.

func CompletedAt

func CompletedAt(v time.Time) predicate.ChatTurn

CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.

func CompletedAtEQ

func CompletedAtEQ(v time.Time) predicate.ChatTurn

CompletedAtEQ applies the EQ predicate on the "completed_at" field.

func CompletedAtGT

func CompletedAtGT(v time.Time) predicate.ChatTurn

CompletedAtGT applies the GT predicate on the "completed_at" field.

func CompletedAtGTE

func CompletedAtGTE(v time.Time) predicate.ChatTurn

CompletedAtGTE applies the GTE predicate on the "completed_at" field.

func CompletedAtIn

func CompletedAtIn(vs ...time.Time) predicate.ChatTurn

CompletedAtIn applies the In predicate on the "completed_at" field.

func CompletedAtIsNil

func CompletedAtIsNil() predicate.ChatTurn

CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.

func CompletedAtLT

func CompletedAtLT(v time.Time) predicate.ChatTurn

CompletedAtLT applies the LT predicate on the "completed_at" field.

func CompletedAtLTE

func CompletedAtLTE(v time.Time) predicate.ChatTurn

CompletedAtLTE applies the LTE predicate on the "completed_at" field.

func CompletedAtNEQ

func CompletedAtNEQ(v time.Time) predicate.ChatTurn

CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.

func CompletedAtNotIn

func CompletedAtNotIn(vs ...time.Time) predicate.ChatTurn

CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.

func CompletedAtNotNil

func CompletedAtNotNil() predicate.ChatTurn

CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.

func ConversationID

func ConversationID(v uuid.UUID) predicate.ChatTurn

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

func ConversationIDEQ

func ConversationIDEQ(v uuid.UUID) predicate.ChatTurn

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

func ConversationIDIn

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

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

func ConversationIDNEQ

func ConversationIDNEQ(v uuid.UUID) predicate.ChatTurn

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

func ConversationIDNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.ChatTurn

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ChatTurn

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ChatTurn

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ChatTurn

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ChatTurn

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ChatTurn

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ChatTurn

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

func CreatedAtNotIn

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

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

func HasConversation

func HasConversation() predicate.ChatTurn

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

func HasConversationWith

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

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

func HasEntries

func HasEntries() predicate.ChatTurn

HasEntries applies the HasEdge predicate on the "entries" edge.

func HasEntriesWith

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

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

func HasPendingInterrupts

func HasPendingInterrupts() predicate.ChatTurn

HasPendingInterrupts applies the HasEdge predicate on the "pending_interrupts" edge.

func HasPendingInterruptsWith

func HasPendingInterruptsWith(preds ...predicate.ChatPendingInterrupt) predicate.ChatTurn

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

func ID

func ID(id uuid.UUID) predicate.ChatTurn

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.ChatTurn

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.ChatTurn

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ChatTurn

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.ChatTurn

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ChatTurn

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ChatTurn

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.ChatTurn) predicate.ChatTurn

Or groups predicates with the OR operator between them.

func ProviderTurnID

func ProviderTurnID(v string) predicate.ChatTurn

ProviderTurnID applies equality check predicate on the "provider_turn_id" field. It's identical to ProviderTurnIDEQ.

func ProviderTurnIDContains

func ProviderTurnIDContains(v string) predicate.ChatTurn

ProviderTurnIDContains applies the Contains predicate on the "provider_turn_id" field.

func ProviderTurnIDContainsFold

func ProviderTurnIDContainsFold(v string) predicate.ChatTurn

ProviderTurnIDContainsFold applies the ContainsFold predicate on the "provider_turn_id" field.

func ProviderTurnIDEQ

func ProviderTurnIDEQ(v string) predicate.ChatTurn

ProviderTurnIDEQ applies the EQ predicate on the "provider_turn_id" field.

func ProviderTurnIDEqualFold

func ProviderTurnIDEqualFold(v string) predicate.ChatTurn

ProviderTurnIDEqualFold applies the EqualFold predicate on the "provider_turn_id" field.

func ProviderTurnIDGT

func ProviderTurnIDGT(v string) predicate.ChatTurn

ProviderTurnIDGT applies the GT predicate on the "provider_turn_id" field.

func ProviderTurnIDGTE

func ProviderTurnIDGTE(v string) predicate.ChatTurn

ProviderTurnIDGTE applies the GTE predicate on the "provider_turn_id" field.

func ProviderTurnIDHasPrefix

func ProviderTurnIDHasPrefix(v string) predicate.ChatTurn

ProviderTurnIDHasPrefix applies the HasPrefix predicate on the "provider_turn_id" field.

func ProviderTurnIDHasSuffix

func ProviderTurnIDHasSuffix(v string) predicate.ChatTurn

ProviderTurnIDHasSuffix applies the HasSuffix predicate on the "provider_turn_id" field.

func ProviderTurnIDIn

func ProviderTurnIDIn(vs ...string) predicate.ChatTurn

ProviderTurnIDIn applies the In predicate on the "provider_turn_id" field.

func ProviderTurnIDIsNil

func ProviderTurnIDIsNil() predicate.ChatTurn

ProviderTurnIDIsNil applies the IsNil predicate on the "provider_turn_id" field.

func ProviderTurnIDLT

func ProviderTurnIDLT(v string) predicate.ChatTurn

ProviderTurnIDLT applies the LT predicate on the "provider_turn_id" field.

func ProviderTurnIDLTE

func ProviderTurnIDLTE(v string) predicate.ChatTurn

ProviderTurnIDLTE applies the LTE predicate on the "provider_turn_id" field.

func ProviderTurnIDNEQ

func ProviderTurnIDNEQ(v string) predicate.ChatTurn

ProviderTurnIDNEQ applies the NEQ predicate on the "provider_turn_id" field.

func ProviderTurnIDNotIn

func ProviderTurnIDNotIn(vs ...string) predicate.ChatTurn

ProviderTurnIDNotIn applies the NotIn predicate on the "provider_turn_id" field.

func ProviderTurnIDNotNil

func ProviderTurnIDNotNil() predicate.ChatTurn

ProviderTurnIDNotNil applies the NotNil predicate on the "provider_turn_id" field.

func StartedAt

func StartedAt(v time.Time) predicate.ChatTurn

StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.ChatTurn

StartedAtEQ applies the EQ predicate on the "started_at" field.

func StartedAtGT

func StartedAtGT(v time.Time) predicate.ChatTurn

StartedAtGT applies the GT predicate on the "started_at" field.

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.ChatTurn

StartedAtGTE applies the GTE predicate on the "started_at" field.

func StartedAtIn

func StartedAtIn(vs ...time.Time) predicate.ChatTurn

StartedAtIn applies the In predicate on the "started_at" field.

func StartedAtLT

func StartedAtLT(v time.Time) predicate.ChatTurn

StartedAtLT applies the LT predicate on the "started_at" field.

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.ChatTurn

StartedAtLTE applies the LTE predicate on the "started_at" field.

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.ChatTurn

StartedAtNEQ applies the NEQ predicate on the "started_at" field.

func StartedAtNotIn

func StartedAtNotIn(vs ...time.Time) predicate.ChatTurn

StartedAtNotIn applies the NotIn predicate on the "started_at" field.

func Status

func Status(v string) predicate.ChatTurn

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.ChatTurn

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.ChatTurn

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.ChatTurn

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.ChatTurn

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.ChatTurn

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.ChatTurn

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.ChatTurn

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.ChatTurn

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.ChatTurn

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.ChatTurn

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.ChatTurn

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.ChatTurn

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.ChatTurn

StatusNotIn applies the NotIn predicate on the "status" field.

func TurnIndex

func TurnIndex(v int) predicate.ChatTurn

TurnIndex applies equality check predicate on the "turn_index" field. It's identical to TurnIndexEQ.

func TurnIndexEQ

func TurnIndexEQ(v int) predicate.ChatTurn

TurnIndexEQ applies the EQ predicate on the "turn_index" field.

func TurnIndexGT

func TurnIndexGT(v int) predicate.ChatTurn

TurnIndexGT applies the GT predicate on the "turn_index" field.

func TurnIndexGTE

func TurnIndexGTE(v int) predicate.ChatTurn

TurnIndexGTE applies the GTE predicate on the "turn_index" field.

func TurnIndexIn

func TurnIndexIn(vs ...int) predicate.ChatTurn

TurnIndexIn applies the In predicate on the "turn_index" field.

func TurnIndexLT

func TurnIndexLT(v int) predicate.ChatTurn

TurnIndexLT applies the LT predicate on the "turn_index" field.

func TurnIndexLTE

func TurnIndexLTE(v int) predicate.ChatTurn

TurnIndexLTE applies the LTE predicate on the "turn_index" field.

func TurnIndexNEQ

func TurnIndexNEQ(v int) predicate.ChatTurn

TurnIndexNEQ applies the NEQ predicate on the "turn_index" field.

func TurnIndexNotIn

func TurnIndexNotIn(vs ...int) predicate.ChatTurn

TurnIndexNotIn applies the NotIn predicate on the "turn_index" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ChatTurn

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ChatTurn

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ChatTurn

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ChatTurn

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ChatTurn

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ChatTurn

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ChatTurn

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

func UpdatedAtNotIn

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

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 ChatTurn queries.

func ByCompletedAt

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

ByCompletedAt orders the results by the completed_at field.

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 ByEntries

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

ByEntries orders the results by entries terms.

func ByEntriesCount

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

ByEntriesCount orders the results by entries count.

func ByID

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

ByID orders the results by the id field.

func ByPendingInterrupts

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

ByPendingInterrupts orders the results by pending_interrupts terms.

func ByPendingInterruptsCount

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

ByPendingInterruptsCount orders the results by pending_interrupts count.

func ByProviderTurnID

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

ByProviderTurnID orders the results by the provider_turn_id field.

func ByStartedAt

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

ByStartedAt orders the results by the started_at field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTurnIndex

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

ByTurnIndex orders the results by the turn_index 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