CREATE TABLE `c_channel_manage_allot` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `app_id` INT(11) DEFAULT NULL,
  `channelName` VARCHAR(50) DEFAULT NULL,
  `channelCode` VARCHAR(20) DEFAULT NULL,
  `chanceType` ENUM('ip','ic','pa','iso','common','icbc','zscq','cwfw','hyzz','gqzr','xzsp') DEFAULT NULL,
  `chanceTypeName` VARCHAR(50) DEFAULT NULL,
  `noticeType` ENUM('sms','email','wechat') DEFAULT NULL,
  `noticeTypeName` VARCHAR(50) DEFAULT NULL,
  `businessOwner` VARCHAR(50) DEFAULT NULL,
  `mobile` VARCHAR(20) DEFAULT NULL,
  `email` VARCHAR(50) DEFAULT NULL,
  `openId` VARCHAR(50) DEFAULT NULL,
  `leaderMobile` VARCHAR(20) DEFAULT NULL,
  `isEnabled` TINYINT(1) DEFAULT '1',
  `isOrderReceiving` TINYINT(1) DEFAULT '1',
  `created_at` DATETIME NOT NULL,
  `updated_at` DATETIME NOT NULL,
  `deleted_at` DATETIME DEFAULT NULL,
  `version` INT(11) NOT NULL DEFAULT '0',
  `channel_id` INT(11) DEFAULT NULL,
  `user_id` INT(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=INNODB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;

CREATE TABLE `c_business_allot` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `app_id` INT(11) DEFAULT NULL,
  `onlyCode` VARCHAR(50) DEFAULT NULL,
  `notifyCount` INT(11) DEFAULT NULL,
  `status` ENUM('1','2','4','8','16') DEFAULT NULL,
  `statusName` VARCHAR(50) DEFAULT NULL,
  `notes` VARCHAR(255) DEFAULT NULL,
  `mobile` VARCHAR(20) DEFAULT NULL,
  `chanceType` ENUM('ip','ic','pa','iso','common','icbc','zscq','cwfw','hyzz','gqzr','xzsp') DEFAULT NULL,
  `chanceTypeName` VARCHAR(50) DEFAULT NULL,
  `serviceItem_code` VARCHAR(50) DEFAULT NULL,
  `serviceItem_name` VARCHAR(255) DEFAULT NULL,
  `publisherName` VARCHAR(255) DEFAULT NULL,
  `publisherMobile` VARCHAR(50) DEFAULT NULL,
  `publisherNotes` VARCHAR(255) DEFAULT NULL,
  `created_at` DATETIME NOT NULL,
  `updated_at` DATETIME NOT NULL,
  `deleted_at` DATETIME DEFAULT NULL,
  `version` INT(11) NOT NULL DEFAULT '0',
  `channelmanageallot_id` INT(11) DEFAULT NULL,
  `businesschance_id` INT(11) DEFAULT NULL,
  `user_id` INT(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=INNODB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4;
