CREATE TABLE `psi_referrals` (
  `ref_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `ref_date` date DEFAULT NULL,
  `ref_count` int(10) unsigned DEFAULT '0',
  `ref_customer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ref_information` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `ref_action` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `ref_referred` int(10) unsigned DEFAULT '0',
  `ref_referral_to` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `ref_remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `ug_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,
  `region_id` bigint(20) unsigned DEFAULT '6',
  `synched` tinyint(1) unsigned DEFAULT '0',
  `sync_date` datetime DEFAULT NULL,
  `ref_cost` decimal(65,3) unsigned DEFAULT '0.000',
  PRIMARY KEY (`ref_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

