# ************************************************************
# Sequel Pro SQL dump
# Version 5446
#
# https://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.5.5-10.8.3-MariaDB)
# Database: click_payment_service_db
# Generation Time: 2022-10-06 10:39:59 +0000
# ************************************************************


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
SET NAMES utf8mb4;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;


# Dump of table auth_users
# ------------------------------------------------------------

DROP TABLE IF EXISTS `auth_users`;

CREATE TABLE `auth_users` (
  `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(256) NOT NULL,
  `email` varchar(191) NOT NULL,
  `password` varchar(200) NOT NULL,
  `api_key` varchar(191) NOT NULL,
  `org_id` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT NULL,
  `last_updated_by` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

LOCK TABLES `auth_users` WRITE;
/*!40000 ALTER TABLE `auth_users` DISABLE KEYS */;

INSERT INTO `auth_users` (`id`, `name`, `email`, `password`, `api_key`, `org_id`, `created_at`, `updated_at`, `last_updated_by`)
VALUES
	(1,'clickdev','support@click-mobile.com','tttoopp','bd8f75cc-0f63-4707-9a2e-361800a0d94c',1,'2021-08-27 23:40:05',NULL,'1');

/*!40000 ALTER TABLE `auth_users` ENABLE KEYS */;
UNLOCK TABLES;


# Dump of table failed_jobs
# ------------------------------------------------------------

DROP TABLE IF EXISTS `failed_jobs`;

CREATE TABLE `failed_jobs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;



# Dump of table migrations
# ------------------------------------------------------------

DROP TABLE IF EXISTS `migrations`;

CREATE TABLE `migrations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

LOCK TABLES `migrations` WRITE;
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;

INSERT INTO `migrations` (`id`, `migration`, `batch`)
VALUES
	(1,'2014_10_12_000000_create_users_table',1),
	(2,'2014_10_12_100000_create_password_resets_table',1),
	(3,'2019_08_19_000000_create_failed_jobs_table',1);

/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES;


# Dump of table mno_configs
# ------------------------------------------------------------

DROP TABLE IF EXISTS `mno_configs`;

CREATE TABLE `mno_configs` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `network` varchar(20) DEFAULT NULL,
  `app_name` varchar(191) DEFAULT NULL,
  `client_id` varchar(250) DEFAULT NULL,
  `client_secret` varchar(250) DEFAULT NULL,
  `grant_type` varchar(20) DEFAULT NULL,
  `token_url` varchar(250) DEFAULT NULL,
  `collect_payment_url` varchar(250) DEFAULT NULL,
  `callback_url` varchar(250) DEFAULT NULL,
  `mode` varchar(20) NOT NULL DEFAULT 'development' COMMENT 'production, development',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

LOCK TABLES `mno_configs` WRITE;
/*!40000 ALTER TABLE `mno_configs` DISABLE KEYS */;

INSERT INTO `mno_configs` (`id`, `network`, `app_name`, `client_id`, `client_secret`, `grant_type`, `token_url`, `collect_payment_url`, `callback_url`, `mode`)
VALUES
	(1,'airtel','airtime_sales','dd735061-29eb-4c21-9179-48428bb56297','b4340eb4-a2b7-4b0a-a8b8-ec9bc671f1b5','client_credentials','https://openapiuat.airtel.africa/auth/oauth2/token','https://openapiuat.airtel.africa/merchant/v1/payments/','https://payments.click-mobile.com/callbacks/airtime_sales/callback_hdlr.php','development'),
	(2,'airtel','bulk_tool','2b6d2877-f7b1-463d-a783-c6ed9e37d562','9e9715ec-4404-4b3d-9445-5f94fc67b498','client_credentials','https://openapiuat.airtel.africa/auth/oauth2/token','https://openapiuat.airtel.africa/merchant/v1/payments/','https://payments.click-mobile.com/callbacks/bulk_tool/callback_hdlr.php','development'),
	(3,'airtel','seedco','2b6d2877-f7b1-463d-a783-c6ed9e37d562','9e9715ec-4404-4b3d-9445-5f94fc67b498','client_credentials','https://openapiuat.airtel.africa/auth/oauth2/token','https://openapiuat.airtel.africa/merchant/v1/payments/','https://payments.click-mobile.com/callbacks/seedco/callback_hdlr.php','development'),
	(4,'airtel','seedco','3681e6f1-8cbd-422f-b8d7-021fca4c47db','680c3068-1c97-4695-b216-e4b299d3a842','client_credentials','https://openapi.airtel.africa/auth/oauth2/token','https://openapi.airtel.africa/merchant/v1/payments/','https://payments.click-mobile.com/callbacks/seedco/callback_hdlr.php','production'),
	(5,'airtel','bulk_tool','2b6d2877-f7b1-463d-a783-c6ed9e37d562','9e9715ec-4404-4b3d-9445-5f94fc67b498','client_credentials','https://openapiuat.airtel.africa/auth/oauth2/token','https://openapi.airtel.africa/merchant/v1/payments/','https://payments.click-mobile.com/callbacks/bulk_tool/callback_hdlr.php','production'),
	(6,'airtel','fam_donations','6ea53216-d800-4b84-a8c4-3b8b23d71320','b2300c03-aa53-4451-88ed-09c0f9c92756','client_credentials','https://openapiuat.airtel.africa/auth/oauth2/token','https://openapi.airtel.africa/merchant/v1/payments/','https://payments.click-mobile.com/callbacks/fam_donations/callback_hdlr.php','production');

/*!40000 ALTER TABLE `mno_configs` ENABLE KEYS */;
UNLOCK TABLES;


# Dump of table organisations
# ------------------------------------------------------------

DROP TABLE IF EXISTS `organisations`;

CREATE TABLE `organisations` (
  `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(256) NOT NULL DEFAULT '',
  `status` varchar(20) NOT NULL DEFAULT 'ACTIVE',
  `remarks` varchar(191) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT NULL,
  `last_updated_by` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

LOCK TABLES `organisations` WRITE;
/*!40000 ALTER TABLE `organisations` DISABLE KEYS */;

INSERT INTO `organisations` (`id`, `name`, `status`, `remarks`, `created_at`, `updated_at`, `last_updated_by`)
VALUES
	(1,'Click Mobile','ACTIVE','Parent ','2021-08-27 23:40:38',NULL,'1');

/*!40000 ALTER TABLE `organisations` ENABLE KEYS */;
UNLOCK TABLES;


# Dump of table password_resets
# ------------------------------------------------------------

DROP TABLE IF EXISTS `password_resets`;

CREATE TABLE `password_resets` (
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;



# Dump of table products
# ------------------------------------------------------------

DROP TABLE IF EXISTS `products`;

CREATE TABLE `products` (
  `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(256) NOT NULL DEFAULT '',
  `status` varchar(20) NOT NULL DEFAULT 'ACTIVE',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT NULL,
  `last_updated_by` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

LOCK TABLES `products` WRITE;
/*!40000 ALTER TABLE `products` DISABLE KEYS */;

INSERT INTO `products` (`id`, `name`, `status`, `created_at`, `updated_at`, `last_updated_by`)
VALUES
	(1,'airtime sales','ACTIVE','2021-08-27 23:41:08',NULL,'1'),
	(2,'bulk tool payments','ACTIVE','2021-08-27 23:41:20',NULL,'1'),
	(3,'general payments','ACTIVE','2021-08-27 23:41:33',NULL,'1'),
	(4,'seedco','ACTIVE','2021-11-09 22:33:26',NULL,NULL);

/*!40000 ALTER TABLE `products` ENABLE KEYS */;
UNLOCK TABLES;


# Dump of table transactions_airtel
# ------------------------------------------------------------

DROP TABLE IF EXISTS `transactions_airtel`;

CREATE TABLE `transactions_airtel` (
  `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
  `org_id` int(11) NOT NULL,
  `msisdn` varchar(20) NOT NULL DEFAULT '',
  `reference_id` varchar(256) NOT NULL DEFAULT '',
  `amount` decimal(10,2) NOT NULL DEFAULT 0.00,
  `status` varchar(20) NOT NULL DEFAULT 'NEW',
  `product_name` varchar(191) DEFAULT '',
  `ussd_push_result_code` varchar(191) DEFAULT NULL,
  `airtel_status_code` varchar(20) DEFAULT NULL,
  `airtel_code` varchar(45) DEFAULT NULL,
  `airtel_money_id` varchar(191) DEFAULT NULL,
  `airtel_message` varchar(200) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT NULL,
  `last_updated_by` varchar(190) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

LOCK TABLES `transactions_airtel` WRITE;
/*!40000 ALTER TABLE `transactions_airtel` DISABLE KEYS */;

INSERT INTO `transactions_airtel` (`id`, `org_id`, `msisdn`, `reference_id`, `amount`, `status`, `product_name`, `ussd_push_result_code`, `airtel_status_code`, `airtel_code`, `airtel_money_id`, `airtel_message`, `created_at`, `updated_at`, `last_updated_by`)
VALUES
	(1,1,'90900','2323232-1',30.00,'NEW',NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-10 01:52:51',NULL,NULL),
	(2,1,'265996139030','670034',789.30,'NEW','seedco','9004',NULL,NULL,NULL,NULL,'2021-11-10 13:27:51',NULL,'clientRequest'),
	(3,1,'265996139030','1230000000',789.30,'NEW','seedco','9004',NULL,NULL,NULL,NULL,'2021-11-10 13:28:11',NULL,'clientRequest');

/*!40000 ALTER TABLE `transactions_airtel` ENABLE KEYS */;
UNLOCK TABLES;


# Dump of table transactions_airtel_ppp
# ------------------------------------------------------------

DROP TABLE IF EXISTS `transactions_airtel_ppp`;

CREATE TABLE `transactions_airtel_ppp` (
  `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
  `msisdn` varchar(20) NOT NULL DEFAULT '',
  `reference_id` varchar(256) NOT NULL DEFAULT '',
  `amount` decimal(10,2) NOT NULL DEFAULT 0.00,
  `product_name` varchar(191) NOT NULL DEFAULT '',
  `org_id` int(11) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'NEW',
  `description` varchar(191) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT NULL,
  `last_updated_by` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

LOCK TABLES `transactions_airtel_ppp` WRITE;
/*!40000 ALTER TABLE `transactions_airtel_ppp` DISABLE KEYS */;

INSERT INTO `transactions_airtel_ppp` (`id`, `msisdn`, `reference_id`, `amount`, `product_name`, `org_id`, `status`, `description`, `created_at`, `updated_at`, `last_updated_by`)
VALUES
	(1,'996139030','3434-12',10.00,'bulk_tool',1,'NEW','payment for SMS bundle','2021-08-28 15:00:04',NULL,NULL),
	(2,'999989584','34346000-100',10.00,'bulk_tool',1,'NEW','payment for SMS bundle','2021-09-06 14:06:44',NULL,NULL);

/*!40000 ALTER TABLE `transactions_airtel_ppp` ENABLE KEYS */;
UNLOCK TABLES;


# Dump of table transactions_tnm
# ------------------------------------------------------------

DROP TABLE IF EXISTS `transactions_tnm`;

CREATE TABLE `transactions_tnm` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `org_id` int(11) NOT NULL,
  `session` varchar(20) DEFAULT NULL,
  `msisdn` varchar(12) NOT NULL,
  `amount` double NOT NULL,
  `payment` varchar(20) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'Incomplete',
  `reason` varchar(160) DEFAULT '',
  `ref_id` varchar(100) DEFAULT 'NONE' COMMENT 'from tnm ',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

LOCK TABLES `transactions_tnm` WRITE;
/*!40000 ALTER TABLE `transactions_tnm` DISABLE KEYS */;

INSERT INTO `transactions_tnm` (`id`, `org_id`, `session`, `msisdn`, `amount`, `payment`, `status`, `reason`, `ref_id`, `created_at`)
VALUES
	(1,1,'9000','889912121',30,'tinp','Incomplete','','2323232','2021-11-10 01:52:28');

/*!40000 ALTER TABLE `transactions_tnm` ENABLE KEYS */;
UNLOCK TABLES;


# Dump of table users
# ------------------------------------------------------------

DROP TABLE IF EXISTS `users`;

CREATE TABLE `users` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `api_token` varchar(80) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `users_email_unique` (`email`),
  UNIQUE KEY `users_api_token_unique` (`api_token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;

INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `api_token`, `remember_token`, `created_at`, `updated_at`)
VALUES
	(1,'Demetrius Cabrera','hahuq@mailinator.com',NULL,'$2y$10$8q/fHnXJyBVvVAzpUOSGfOruOCvbmq4CwsU6tiX5TGAgN7fBaTwiO',NULL,NULL,'2022-09-19 20:44:28','2022-09-19 20:44:28'),
	(2,'Anthony Peterson','byxew@mailinator.com',NULL,'$2y$10$XKouqxatTejlq36posS8euFv0zjKzmMbCwFurwcGXT0PnKuh5hVhS',NULL,NULL,'2022-09-19 20:55:55','2022-09-19 20:55:55'),
	(3,'Frances Leblanc','qewusiw@mailinator.com',NULL,'$2y$10$YVZNtS51kizU87lNbT/tNOe4LAWKLfOvbhXQHmJXM7BHvyval7VM2','tY4rx2VFwU9ZnplNGTFGyEGgfvOQfHW33A2TR03QwsrtpHx4fRZ5okOz51xEpo4szWQtM0smvDenDYGn',NULL,'2022-09-19 21:04:16','2022-09-19 21:04:16');

/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;



/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
