diff --git a/scripts/create_table.sql b/scripts/create_table.sql index c42a502..58c9447 100755 --- a/scripts/create_table.sql +++ b/scripts/create_table.sql @@ -1,6 +1,6 @@ CREATE TABLE `statement` ( - `id` int(11) NOT NULL, + `id` int(11) NOT NULL AUTO_INCREMENT, `text` varchar(255) DEFAULT NULL, `search_text` varchar(255) NOT NULL DEFAULT '', `conversation` varchar(32) NOT NULL DEFAULT '', @@ -13,7 +13,7 @@ CREATE TABLE CREATE TABLE `nsfw_content` ( - `id` int(11) NOT NULL, + `id` int(11) NOT NULL AUTO_INCREMENT, `text` varchar(255) NOT NULL DEFAULT '', `created_at` datetime DEFAULT current_timestamp(), `persona` varchar(50) NOT NULL DEFAULT '', @@ -21,10 +21,11 @@ CREATE TABLE ); CREATE TABLE - learn ( - command varchar(255) NOT NULL, - result varchar(255) NOT NULL, - user_id varchar(255) NOT NULL, - created_at datetime NOT NULL DEFAULT current_timestamp(), - primary key(`command`) + `learn` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `command` varchar(255) NOT NULL, + `result` varchar(255) NOT NULL, + `user_id` varchar(255) NOT NULL, + `created_at` datetime NOT NULL DEFAULT current_timestamp(), + primary key(`id`) ); \ No newline at end of file