bot/scripts/create_table.sql

31 lines
1 KiB
MySQL
Raw Normal View History

2023-09-23 03:51:15 +00:00
CREATE TABLE
`statement` (
2023-12-17 11:35:37 +00:00
`id` int(11) NOT NULL AUTO_INCREMENT,
2023-09-23 03:51:15 +00:00
`text` varchar(255) DEFAULT NULL,
`search_text` varchar(255) NOT NULL DEFAULT '',
`conversation` varchar(32) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT current_timestamp(),
`in_response_to` varchar(255) DEFAULT NULL,
`search_in_response_to` varchar(255) NOT NULL DEFAULT '',
`persona` varchar(50) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
);
CREATE TABLE
`nsfw_content` (
2023-12-17 11:35:37 +00:00
`id` int(11) NOT NULL AUTO_INCREMENT,
2023-09-23 03:51:15 +00:00
`text` varchar(255) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT current_timestamp(),
`persona` varchar(50) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
2023-11-24 02:13:16 +00:00
);
CREATE TABLE
2023-12-17 11:35:37 +00:00
`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`)
2023-09-23 03:51:15 +00:00
);