
CREATE TABLE
IF NOT EXISTS `h_channel_customer` (
	`id` INTEGER NOT NULL auto_increment,
	`salesmanAppId` INTEGER,
	`salesmanUserId` INTEGER,
	`salesmanAccountId` INTEGER,
	`salesmanNickName` VARCHAR (255),
	`salesmanOpenid` VARCHAR (255),
	`salesmanOnlyCode` VARCHAR (255),
	`customerMobile` VARCHAR (255),
	`channelTypeName` VARCHAR (255),
	`channelType` ENUM ('yjs') DEFAULT 'yjs',
	`created_at` DATETIME NOT NULL,
	`updated_at` DATETIME NOT NULL,
	`deleted_at` DATETIME,
	`version` INTEGER NOT NULL DEFAULT 0,
	PRIMARY KEY (`id`)
) ENGINE = INNODB;
