public.ai_conversations¶
Columns¶
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| created_at | timestamp with time zone | false | ||||
| id | bigint | false | public.ai_messages | |||
| title | varchar(255) | false | ||||
| type | varchar(30) | false | ||||
| updated_at | timestamp with time zone | false | ||||
| user_id | bigint | false | public.users |
Constraints¶
| Name | Type | Definition |
|---|---|---|
| ai_conversations_pkey | PRIMARY KEY | PRIMARY KEY (id) |
| ai_conversations_user_id_dbc7a9ce_fk_users_id | FOREIGN KEY | FOREIGN KEY (user_id) REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED |
Indexes¶
| Name | Definition |
|---|---|
| ai_conversa_user_id_0309df_idx | CREATE INDEX ai_conversa_user_id_0309df_idx ON public.ai_conversations USING btree (user_id, updated_at DESC) |
| ai_conversations_pkey | CREATE UNIQUE INDEX ai_conversations_pkey ON public.ai_conversations USING btree (id) |
| ai_conversations_user_id_dbc7a9ce | CREATE INDEX ai_conversations_user_id_dbc7a9ce ON public.ai_conversations USING btree (user_id) |
Generated by tbls