fix: Database type

This commit is contained in:
Siwoo Jeon 2024-09-23 19:33:40 +09:00
parent 81bfd775d3
commit 9d84e7b608
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA
2 changed files with 27 additions and 30 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "muffinbot", "name": "muffinbot",
"version": "3.0.1-cake.r240815b", "version": "3.1.0-cake.d240923a",
"main": "dist/index.js", "main": "dist/index.js",
"private": true, "private": true,
"dependencies": { "dependencies": {

View file

@ -1,7 +1,6 @@
CREATE TABLE CREATE TABLE `statement` (
`statement` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) DEFAULT NULL, `text` varchar(255) DEFAULT NOT NULL,
`search_text` varchar(255) NOT NULL DEFAULT '', `search_text` varchar(255) NOT NULL DEFAULT '',
`conversation` varchar(32) NOT NULL DEFAULT '', `conversation` varchar(32) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT current_timestamp(), `created_at` datetime DEFAULT current_timestamp(),
@ -9,23 +8,21 @@ CREATE TABLE
`search_in_response_to` varchar(255) NOT NULL DEFAULT '', `search_in_response_to` varchar(255) NOT NULL DEFAULT '',
`persona` varchar(50) NOT NULL DEFAULT '', `persona` varchar(50) NOT NULL DEFAULT '',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
); );
CREATE TABLE CREATE TABLE `nsfw_content` (
`nsfw_content` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) NOT NULL DEFAULT '', `text` varchar(255) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT current_timestamp(), `created_at` datetime DEFAULT current_timestamp(),
`persona` varchar(50) NOT NULL DEFAULT '', `persona` varchar(50) NOT NULL DEFAULT '',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
); );
CREATE TABLE CREATE TABLE `learn` (
`learn` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`command` varchar(255) NOT NULL, `command` varchar(255) NOT NULL,
`result` varchar(255) NOT NULL, `result` varchar(255) NOT NULL,
`user_id` varchar(255) NOT NULL, `user_id` varchar(255) NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(), `created_at` datetime NOT NULL DEFAULT current_timestamp(),
primary key(`id`) primary key (`id`)
); );