Index

public.chatbot_conversations

Description

Grops the messages in a conversation between a student and a chatbot.

Columns

Name Type Default Nullable Children Parents Comment
chatbot_configuration_id uuid false public.chatbot_configurations The chatbot configuration that is used in this conversation.
course_id uuid false public.courses The course this chatbot is appearing on
created_at timestamp with time zone now() false Timestamp when the record was created.
deleted_at timestamp with time zone true Timestamp when the record was deleted. If null, the record is not deleted.
id uuid uuid_generate_v4() false public.chatbot_conversation_messages A unique, stable identifier for the record.
updated_at timestamp with time zone now() false Timestamp when the record was last updated. The field is updated automatically by the set_timestamp trigger.
user_id uuid false The user that is participating in the conversation.

Constraints

Name Type Definition
chatbot_conversations_chatbot_configuration_id_fkey FOREIGN KEY FOREIGN KEY (chatbot_configuration_id) REFERENCES chatbot_configurations(id)
chatbot_conversations_course_id_fkey FOREIGN KEY FOREIGN KEY (course_id) REFERENCES courses(id)
chatbot_conversations_pkey PRIMARY KEY PRIMARY KEY (id)

Indexes

Name Definition
chatbot_conversations_pkey CREATE UNIQUE INDEX chatbot_conversations_pkey ON public.chatbot_conversations USING btree (id)

Triggers

Name Definition
set_timestamp CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.chatbot_conversations FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp()

Relations

er

Generated by tbls