Skip to content

Commit

Permalink
update pg ddl
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Sep 15, 2024
1 parent f014c56 commit f9c20eb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ CREATE TABLE llm_platform_authorized
id BIGINT CHECK (id > 0) NOT NULL GENERATED ALWAYS AS IDENTITY,
platform_id BIGINT CHECK (platform_id > 0) NOT NULL,
credentials JSON NOT NULL,
is_deleted BOOLEAN DEFAULT FALSE,
create_time TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP,
update_time TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP /* ON UPDATE CURRENT_TIMESTAMP */,
create_by BIGINT DEFAULT NULL,
Expand All @@ -354,6 +355,7 @@ CREATE TABLE llm_chat_thread
user_id BIGINT CHECK (user_id > 0) NOT NULL,
model VARCHAR(255) NOT NULL,
thread_info JSON DEFAULT NULL,
is_deleted BOOLEAN DEFAULT FALSE,
create_time TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP,
update_time TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP /* ON UPDATE CURRENT_TIMESTAMP */,
create_by BIGINT DEFAULT NULL,
Expand All @@ -371,6 +373,7 @@ CREATE TABLE llm_chat_message
user_id BIGINT CHECK (user_id > 0) NOT NULL,
message TEXT NOT NULL,
sender VARCHAR(50) NOT NULL,
is_deleted BOOLEAN DEFAULT FALSE,
create_time TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP,
update_time TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP /* ON UPDATE CURRENT_TIMESTAMP */,
create_by BIGINT DEFAULT NULL,
Expand Down

0 comments on commit f9c20eb

Please sign in to comment.