CREATE TABLE `psi_repayments` (
  `rep_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `rep_start_year` int(10) unsigned DEFAULT '0',
  `rep_start_month` int(10) unsigned DEFAULT '1',
  `rep_amount` decimal(65,3) unsigned DEFAULT '0.000',
  `rep_month_count` int(10) unsigned DEFAULT '36',
  `rep_otb_paid` tinyint(1) unsigned DEFAULT '0',
  `rep_monthly_payment` decimal(65,3) unsigned DEFAULT '0.000',
  `rep_ub_amount` decimal(65,3) unsigned DEFAULT '0.000',
  `rep_ub_receipt_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '',
  `rep_ub_check_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '',
  `rep_ub_check_date` date DEFAULT NULL,
  `rep_add_amount` decimal(65,3) unsigned DEFAULT '0.000',
  `rep_add_check_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '',
  `rep_add_check_date` date DEFAULT NULL,
  `rep_remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `prj_id` bigint(20) unsigned DEFAULT '0',
  `encoder` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '',
  `date_encoded` datetime DEFAULT NULL,
  `updater` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '',
  `last_updated` datetime DEFAULT NULL,
  `rep_otb` decimal(65,3) unsigned DEFAULT '0.000',
  `region_id` bigint(20) unsigned DEFAULT '6',
  `synched` tinyint(1) unsigned DEFAULT '0',
  `sync_date` datetime DEFAULT NULL,
  PRIMARY KEY (`rep_id`)
) ENGINE=InnoDB AUTO_INCREMENT=411 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

