

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for fin_payment_advance_refund_transfer_apply
-- ----------------------------
DROP TABLE IF EXISTS `fin_payment_advance_refund_transfer_apply`;
CREATE TABLE `fin_payment_advance_refund_transfer_apply`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '物理主键',
  `payment_change_no` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预付款变更单',
  `supplier_code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '供应商编码',
  `supplier_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '供应商名称',
  `currency_code` varchar(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '币种',
  `company_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '公司名称',
  `company_code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '付款公司代码',
  `data_type` int(3) NULL DEFAULT NULL COMMENT '数据类型：转单0、退款1',
  `status` int(11) NULL DEFAULT 0 COMMENT '暂存 0、发布 1,驳回2',
  `delete_flag` int(11) NULL DEFAULT 0 COMMENT '删除标识 0:未删除 1:已删除',
  `recorded_amount` decimal(15, 0) NULL DEFAULT NULL COMMENT '①预付款菜单订单转单金额或者预付款采购订单退款金额',
  `reversed_amount` decimal(15, 0) NULL DEFAULT NULL COMMENT '①已关联开票申请单，被冲账的金额',
  `remark` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  `files` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件ids',
  `create_user_id` bigint(20) NULL DEFAULT NULL COMMENT '创建用户ID',
  `create_user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户姓名',
  `create_user_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户工号',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_user_id` bigint(20) NULL DEFAULT NULL COMMENT '最后更新用户ID',
  `update_user_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '最后更新用户工号',
  `update_user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '最后更新用户姓名',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
  `approval_opinion` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '审批意见',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 83 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
