Skip to content

Commit 5c5f427

Browse files
committed
Remove prospect_id and adjust prompt table SQL
Remove the prospect_id foreign key from the prompt CREATE TABLE SQL and adjust column order (model moved before data). Also delete drop_llm_table.sql which contained DROP TABLE IF EXISTS llm. Note: this updates the table creation script only—apply a DB migration if you need to remove the existing column or preserve data.
1 parent 8bcdf67 commit 5c5f427

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

app/api/prompt/sql/create_table.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ CREATE TABLE IF NOT EXISTS prompt (
66
completion TEXT NOT NULL,
77
duration FLOAT,
88
time TIMESTAMPTZ DEFAULT NOW(),
9-
data JSONB,
109
model TEXT,
11-
prospect_id INTEGER REFERENCES prospects(id)
10+
data JSONB
1211
);

app/api/prompt/sql/drop_llm_table.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)