CREATE TABLE `order_details` (
  `tran_sys_id` bigint(10) NOT NULL,
  `trxid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `tran_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `tran_status` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `card_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `card_no` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `toal_amount` float NOT NULL,
  `cus_first_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `cus_last_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cus_email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `cus_phone` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `cus_address` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
  `cus_country` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `cus_city` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cus_state` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `currency_type` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `currency_amount` float DEFAULT NULL,
  `currency_rate` float DEFAULT NULL,
  `paid_currency` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `paid_amount` float DEFAULT NULL,
  `store_amount` float DEFAULT NULL,
  `userid` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `usertype` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `transactiontype` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `invoiceids` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sellingcurrencyamount` float DEFAULT NULL,
  `accountingcurrencyamount` float DEFAULT NULL,
  `checksum` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `resellerEmail` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `resellerURL` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `resellerCompanyName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `resellerCurrency` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tran_init_time` timestamp NULL DEFAULT NULL,
  `tran_complete_time` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
