DROP TABLE IF EXISTS diaries;
CREATE TABLE diaries (
id INT PRIMARY KEY AUTO_INCREMENT,
title TEXT,
created_at DATETIME
) DEFAULT CHARSET UTF8MB4;
INSERT INTO diaries (title, created_at)
VALUES ('2012', '2012');
Warnings:
Warning	1265	Data truncated for column 'created_at' at row 1
Warning	1265	Data truncated for column 'created_at' at row 1
SELECT * FROM diaries;
id	title	created_at
1	2012	0000-01-01 00:00:00
DROP TABLE diaries;
