CREATE TABLE bonus_log
(`id` int, `user` varchar(4), `reason` varchar(10), `account` int,
`created` DATETIME, `expired` DATETIME, `link` int, `description` varchar(40))
;
INSERT INTO bonus_log
(`id`, `user`, `reason`, `account`, `created`, `expired`, `link`, `description`)
VALUES
(1, 'user', 'income', 20, '2022/02/01', NULL, NULL, 'present 20'),
(50, 'user', 'income', 20, '2022/02/20', '2022/03/20', NULL, 'period'),
(75, 'user', 'buying', -28, '2022/02/28', NULL, NULL, 'buying 18'),
(100, 'user', 'income', 10, '2022/03/01', '2022/04/01', NULL, 'period'),
(101, 'user', 'income', 10, '2022/03/01', '2022/04/01', NULL, 'period'),
(102, 'user', 'income', 10, '2022/03/01', '2022/04/01', NULL, 'period'),
(103, 'user', 'income', 10, '2022/03/01', '2022/04/01', NULL, 'period'),
(104, 'user', 'burning', 0, '2022/03/20', NULL, 50, 'burn 20'),
(105, 'user', 'buying', -28, '2022/03/21', NULL, NULL, 'buying 22'),
(106, 'user', 'burning', -10, '2022/04/01', NULL, 100, 'burn2'),
(107, 'user', 'burning', -2, '2022/04/01', NULL, 101, 'burn0'),
(108, 'user', 'burning', -0, '2022/04/01', NULL, 102, 'burn0'),
(109, 'user', 'burning', -0, '2022/04/01', NULL, 103, 'burn0'),
(110, 'user', 'income', 10, '2022/04/02', '2022/05/02', NULL, 'period')
;