创表 SQL
CREATE TABLE `stat_order_count` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`user_id` bigint NOT NULL DEFAULT '0' COMMENT '用户id',
`year` int NOT NULL DEFAULT '0' COMMENT '年',
`month` int NOT NULL DEFAULT '0' COMMENT '月',
`order_count` int NOT NULL DEFAULT '0' COMMENT '记工次数',
`order_amount` decimal(32,4) NOT NULL DEFAULT '0.0000' COMMENT '记工金额',
`record_date` date NOT NULL DEFAULT '1970-01-01' COMMENT '记工归属月(YYYY-MM-DD,其中DD必须为01)',
`create_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '创建时间',
`update_at` datetime(3) NOT NULL DEFAULT CURRE