helpdesk_conversations

0 rows


Description

ヘルプデスクAI 会話セッション

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id CHAR 36 null
helpdesk_messages.conversation_id fk_helpdesk_messages_conversation_idC

ヘルプデスク会話ID (UUID 文字列 / 現状は uuid.NewString() = v4)

organization_id VARCHAR 100 null
organizations.id fk_helpdesk_conversations_organization_idR

組織ID

user_id CHAR 36 null

employee.id (会話の所有者)

dify_conversation_id VARCHAR 255 null

Dify 側の conversation_id (文脈継続用)

title VARCHAR 255 null

一覧表示用タイトル (初回質問から自動生成)

created_at BIGINT UNSIGNED 20 unix_timestamp(now())

作成日時 (Unixタイムスタンプ)

updated_at BIGINT UNSIGNED 20 unix_timestamp(now())

更新日時 (Unixタイムスタンプ)

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
idx_org Performance Asc organization_id
idx_user_org_updated Performance Asc/Asc/Desc user_id + organization_id + updated_at

Relationships