CREATE TABLE IF NOT EXISTS CDR_DB.cdrFromPPS_18 (
   key_sys_id tinyint(2) DEFAULT '0' NOT NULL,
   instance int(4) DEFAULT '0' NOT NULL,
   recordType int(2),
   callType int(2),
   servedIMSI varchar(20),
   servedMSISDN varchar(20),
   callingNumber varchar(20),
   calledNumber varchar(20),
   recordingEntity varchar(20),
   mscIncomingTKGP varchar(20),
   mscOutgoingTKGP varchar(20),
   locationAreaCode int(4),
   cellId varchar(4),
   seizureTime datetime,
   answerTime datetime,
   releaseTime datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
   callDuration int(4),
   causeForTerm int(4),
   callReference int(4),
   charge int(4),
   balance int(4),
   gprs_sgsn_ip varchar(16),
   gprs_ggsn_ip varchar(16),
   gprs_dest_ip varchar(16),
   gprs_volume int(10),
   srcCode text,
   PRIMARY KEY (key_sys_id, instance, releaseTime)
);
