CREATE TABLE `kws_weighbridge_record`
(
    `id`             bigint         NOT NULL COMMENT '主键ID',
    `weighbridge_id` bigint         NOT NULL COMMENT '地磅ID',
    `truck_no`       varchar(32)    NOT NULL DEFAULT '' COMMENT '车牌号',
    `weight`         decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '重量(吨)',
    `receive_time`   datetime       NULL COMMENT '接收时间',
    `create_by`      bigint         NOT NULL DEFAULT 0 COMMENT '创建人',
    `create_time`    datetime       NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_by`      bigint         NOT NULL DEFAULT 0 COMMENT '更新人',
    `update_time`    datetime       NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `del_flag`       int            NOT NULL DEFAULT 0 COMMENT '删除标识: 0-正常, 1-删除',
    PRIMARY KEY (`id`) USING BTREE,
    KEY `idx_weighbridge_id` (`weighbridge_id`) USING BTREE,
    KEY `idx_truck_no` (`truck_no`) USING BTREE,
    KEY `idx_create_time` (`create_time`) USING BTREE,
    KEY `idx_receive_time` (`receive_time`) USING BTREE
) COMMENT ='地磅称重记录表';
