You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
udiwms-java/scripts/update.sql

41 lines
2.2 KiB
MySQL

/*
Navicat Premium Data Transfer
Source Server : mysql
Source Server Type : MySQL
Source Server Version : 80021
Source Host : localhost:3306
Source Schema : udiwms
Target Server Type : MySQL
Target Server Version : 80021
File Encoding : 65001
Date: 07/03/2022 17:58:14
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for company_product_relevance
-- ----------------------------
DROP TABLE IF EXISTS `company_product_relevance`;
CREATE TABLE `company_product_relevance` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`customerId` bigint NOT NULL,
`productId` bigint NULL DEFAULT NULL,
`enterpriseId` bigint NULL DEFAULT NULL,
`registrationId` bigint NULL DEFAULT NULL,
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`auditStatus` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '审核状态 1通过2不通过3反审',
`productUuid` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`udiRlIdFk` bigint NULL DEFAULT NULL COMMENT '基础信息维护表关联主键',
`unitFk` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '往来单位ID外键',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `udiRlIdFk`(`udiRlIdFk`, `customerId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 141 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;
SET FOREIGN_KEY_CHECKS = 1;