CREATE TABLE `deliver` ( `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '数据创建时间', `modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '数据修改时间', `is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '数据是否删除', `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注', `id` bigint(20) NOT NULL AUTO_INCREMENT, `id_onl` varchar(100) COMMENT 'ID 线上', `status` smallint(6) COMMENT '状态', `status_label` varchar(50) COMMENT '状态名称', `gs_status` smallint(6) NOT NULL COMMENT '状态', `gs_status_label` varchar(50) NOT NULL COMMENT '状态名称', `confirm_time` timestamp NULL DEFAULT NULL COMMENT '接单时间', `org_name` varchar(255) COMMENT '组织名称', `org_id` bigint(20) NOT NULL COMMENT '组织ID 妈宝', `invcode` int(4) NOT NULL, `consignee_name` varchar(100) COMMENT '收货人姓名', `consignee_phone` varchar(20) COMMENT '收货人手机', `goods_barcode` varchar(50) NOT NULL COMMENT '商品条码', `goods_id_ofl` varchar(100) NOT NULL COMMENT '商品ID 线下', `goods_name` varchar(255) NOT NULL COMMENT '商品名称', `number` bigint(21) NOT NULL, `bar_code` varchar(64), PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;