text: CREATE DATABASE  IF NOT EXISTS `erp` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */;
  USE `erp`;
  -- MySQL dump 10.13  Distrib 8.0.13, for Win64 (x86_64)
  --
  -- Host: 127.0.0.1    Database: erp
  -- ------------------------------------------------------
  -- Server version	8.0.13
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
   SET NAMES utf8 ;
  /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  /*!40103 SET TIME_ZONE='+00:00' */;
  /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  
  --
  -- Table structure for table `md_vendor_bank`
  --
  
  DROP TABLE IF EXISTS `md_vendor_bank`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
   SET character_set_client = utf8mb4 ;
  CREATE TABLE `md_vendor_bank` (
    `bank_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `vendor_code` varchar(45) NOT NULL COMMENT '供应商编码',
    `bank_code` varchar(45) NOT NULL COMMENT '银行编码',
    `sub_bank_code` varchar(45) DEFAULT NULL COMMENT '分行编码',
    `bank_account` varchar(45) NOT NULL COMMENT '银行账户',
    `status` char(1) NOT NULL DEFAULT 'Y' COMMENT '状态',
    `created_date` datetime NOT NULL COMMENT '创建时间',
    `created_by` varchar(45) NOT NULL COMMENT '创建人',
    `last_updated_date` datetime DEFAULT NULL COMMENT '最后修改时间',
    `last_updated_by` varchar(45) DEFAULT NULL COMMENT '最后修改人',
    `org_code` varchar(10) NOT NULL COMMENT '组织机构',
    PRIMARY KEY (`bank_id`),
    UNIQUE KEY `UK_md_vendor_bank` (`vendor_code`,`bank_code`,`bank_account`)
  ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='主数据供应商银行表';
  /*!40101 SET character_set_client = @saved_cs_client */;
  /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  
  /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  
  -- Dump completed on 2020-08-10 13:53:19
  