Discord-Bot-Python/database/schema.sql

13 lines
406 B
MySQL
Raw Normal View History

2023-01-23 07:29:07 -05:00
CREATE TABLE IF NOT EXISTS `blacklist` (
`user_id` varchar(20) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS `warns` (
`id` int(11) NOT NULL,
`user_id` varchar(20) NOT NULL,
`server_id` varchar(20) NOT NULL,
`moderator_id` varchar(20) NOT NULL,
`reason` varchar(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
);