fix: Database type
This commit is contained in:
parent
81bfd775d3
commit
9d84e7b608
2 changed files with 27 additions and 30 deletions
|
@ -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": {
|
||||||
|
|
|
@ -1,31 +1,28 @@
|
||||||
CREATE TABLE
|
CREATE TABLE `statement` (
|
||||||
`statement` (
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`text` varchar(255) DEFAULT NOT NULL,
|
||||||
`text` varchar(255) DEFAULT 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(),
|
`in_response_to` varchar(255) DEFAULT NULL,
|
||||||
`in_response_to` varchar(255) DEFAULT NULL,
|
`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`)
|
);
|
||||||
);
|
|
Loading…
Reference in a new issue