CREATE TABLE `customerappcode` ( `Oid` bigint(19) NOT NULL AUTO_INCREMENT, `CustomerOid` bigint(19) DEFAULT NULL, `Tid` int(10) DEFAULT NULL, `Notice` varchar(1024) DEFAULT NULL, `InsTs` datetime DEFAULT NULL, `InsUser` varchar(1024) DEFAULT NULL, `Version` bigint(19) DEFAULT NULL, `UdpUser` varchar(256) DEFAULT NULL, `isActive` tinyint(4) DEFAULT NULL, `SystemEntryID` int(10) DEFAULT NULL, `CustomerCodeGenDate` datetime DEFAULT NULL, `CustomerCode` varchar(512) DEFAULT NULL, PRIMARY KEY (`Oid`), UNIQUE KEY `CustomerCode_UNIQUE` (`CustomerCode`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;