CREATE TABLE `wx_rent_contract_revenue_sales` (
  `id` bigint(20) NOT NULL COMMENT '主键ID',
  `tenant_id` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '租户ID',
  `parent_tenant_id` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '父租户ID',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `rent_contract_id` bigint(20) NOT NULL COMMENT '租金合同编号',
  `bill_id` bigint(20) NOT NULL COMMENT '账单编号',
  `bill_money` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '账单应付金额',
  `sale_money` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '销售金额',
  `remark` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '备注',
  `calcute_money` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '计算之后的金额',
  `property_contract_id` bigint(20) DEFAULT NULL COMMENT '物业合同',
  PRIMARY KEY (`id`),
  KEY `T_R_B` (`tenant_id`,`rent_contract_id`,`bill_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='租赁合同';