cdr.sql 700 B

123456789101112131415161718
  1. CREATE TABLE `cdr` (
  2. `caller_id_name` varchar(80) NOT NULL default '',
  3. `caller_id_number` varchar(80) NOT NULL default '',
  4. `destination_number` varchar(80) NOT NULL default '',
  5. `context` varchar(80) NOT NULL default '',
  6. `start_timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
  7. `answer_timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
  8. `end_timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
  9. `duration` int(11) NOT NULL default '0',
  10. `billsec` int(11) NOT NULL default '0',
  11. `hangup_cause` varchar(45) NOT NULL default '',
  12. `uuid` varchar(36) NOT NULL default '',
  13. `bleg_uuid` varchar(36) NOT NULL default '',
  14. `accountcode` varchar(20) NOT NULL default ''
  15. );