Skip to content

Commit

Permalink
fix ddl
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Oct 16, 2024
1 parent 03482f7 commit 90ff6cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ CREATE TABLE `llm_auth_platform`
`credentials` TEXT NOT NULL,
`status` SMALLINT DEFAULT 0 COMMENT '-1-Deleted, 0-Normal, 1-Active, 2-Inactive',
`model` VARCHAR(255) NOT NULL,
`name` VARCHAR(255) NOT NULL,
`notes` VARCHAR(255) NOT NULL,
`name` VARCHAR(255) DEFAULT NULL,
`notes` VARCHAR(255) DEFAULT NULL,
`create_time` DATETIME DEFAULT CURRENT_TIMESTAMP,
`update_time` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_by` BIGINT DEFAULT NULL,
Expand All @@ -347,6 +347,7 @@ CREATE TABLE `llm_chat_thread`
`user_id` BIGINT(20) UNSIGNED NOT NULL,
`is_deleted` TINYINT(1) DEFAULT 0 NULL,
`thread_info` TEXT DEFAULT NULL,
`name` VARCHAR(255) DEFAULT NULL,
`create_time` DATETIME DEFAULT CURRENT_TIMESTAMP,
`update_time` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_by` BIGINT DEFAULT NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ CREATE TABLE llm_auth_platform
credentials TEXT NOT NULL,
status SMALLINT DEFAULT 0,
model VARCHAR(255) NOT NULL,
name VARCHAR(255) NOT NULL,
notes VARCHAR(255) NOT NULL,
name VARCHAR(255) DEFAULT NULL,
notes VARCHAR(255) DEFAULT NULL,
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 @@ -357,6 +357,7 @@ CREATE TABLE llm_chat_thread
auth_id BIGINT CHECK (auth_id > 0) NOT NULL,
user_id BIGINT CHECK (user_id > 0) NOT NULL,
thread_info TEXT DEFAULT NULL,
name VARCHAR(255) 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 */,
Expand Down

0 comments on commit 90ff6cd

Please sign in to comment.