Index

public.chatbot_configurations_models

Description

Stores Azure OpenAI LLMs that have been deployed in Azure AI. The chatbot_configurations table references this table to indicate which LLM the configuration uses.

Columns

Name Type Default Nullable Children Parents Comment
created_at timestamp with time zone now() false Timestamp when the record was created.
default_model boolean false false The default model to use on new chatbot_configurations.
deleted_at timestamp with time zone true Timestamp when the record was deleted. If null, the record is not deleted.
deployment_name varchar(255) false The name given to the LLM deployment in Azure. Used to access the correct Azure chatbot api endpoint.
id uuid uuid_generate_v4() false public.chatbot_configurations A unique, stable identifier for the record.
model varchar(255) false The model name of the LLM. Used for indicating which OpenAI model is in question.
thinking boolean false public.chatbot_configurations
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.

Constraints

Name Type Definition
chatbot_configurations_models_created_at_not_null n NOT NULL created_at
chatbot_configurations_models_default_model_not_null n NOT NULL default_model
chatbot_configurations_models_deployment_name_not_null n NOT NULL deployment_name
chatbot_configurations_models_id_not_null n NOT NULL id
chatbot_configurations_models_id_thinking_key UNIQUE UNIQUE (id, thinking)
chatbot_configurations_models_model_not_null n NOT NULL model
chatbot_configurations_models_pkey PRIMARY KEY PRIMARY KEY (id)
chatbot_configurations_models_thinking_not_null n NOT NULL thinking
chatbot_configurations_models_updated_at_not_null n NOT NULL updated_at

Indexes

Name Definition
chatbot_configurations_models_id_thinking_key CREATE UNIQUE INDEX chatbot_configurations_models_id_thinking_key ON public.chatbot_configurations_models USING btree (id, thinking)
chatbot_configurations_models_only_one_default CREATE UNIQUE INDEX chatbot_configurations_models_only_one_default ON public.chatbot_configurations_models USING btree (default_model, deleted_at) NULLS NOT DISTINCT WHERE (default_model IS TRUE)
chatbot_configurations_models_pkey CREATE UNIQUE INDEX chatbot_configurations_models_pkey ON public.chatbot_configurations_models USING btree (id)

Triggers

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

Relations

er

Generated by tbls