-- MySQL dump 10.13  Distrib 8.0.40, for Linux (x86_64)
--
-- Host: localhost    Database: happy_paradise
-- ------------------------------------------------------
-- Server version	8.0.40-0ubuntu0.22.04.1

/*!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 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!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 */;

--
-- Table structure for table `third_party_providers`
--

DROP TABLE IF EXISTS `third_party_providers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `third_party_providers` (
  `uid` int unsigned NOT NULL AUTO_INCREMENT COMMENT '自動遞增的整數',
  `id` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '第三方金流提供商的唯一標識符',
  `provider_file_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '提供商名稱',
  `provider_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '提供商名稱',
  `currency_code` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '支持的貨幣代碼',
  `max_deposit_limit` double(30,8) NOT NULL DEFAULT '0.00000000' COMMENT '此貨幣的縂存款限額',
  `max_withdrawal_limit` double(30,8) NOT NULL DEFAULT '0.00000000' COMMENT '此貨幣的縂出款限額',
  `is_withdrawal_enabled` tinyint(1) NOT NULL DEFAULT '0' COMMENT '代付金流功能是否启用',
  `is_auto_withdrawal_enabled` tinyint(1) NOT NULL DEFAULT '0' COMMENT '自动代付功能是否启用',
  `is_cagent_auto_withdrawal_enabled` tinyint(1) NOT NULL DEFAULT '0' COMMENT '代理自动代付功能是否启用',
  `memo` text COLLATE utf8mb4_unicode_ci COMMENT '备注信息',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`uid`),
  UNIQUE KEY `id_currency_code_unique` (`id`,`currency_code`),
  KEY `provider_status_idx` (`provider_name`,`is_withdrawal_enabled`,`is_auto_withdrawal_enabled`,`is_cagent_auto_withdrawal_enabled`),
  KEY `provider_name_idx` (`provider_name`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='代理商資料表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `third_party_providers`
--

LOCK TABLES `third_party_providers` WRITE;
/*!40000 ALTER TABLE `third_party_providers` DISABLE KEYS */;
REPLACE INTO `third_party_providers` VALUES (2,'GREATPAY-TWD','GreatPay','GreatPay','TWD',20000.00000000,50000.00000000,0,0,0,'GreatPay','2024-10-18 02:45:25','2024-10-18 02:45:25'),(3,'MMPAY-TWD','MmPay','MmPay','TWD',20000.00000000,50000.00000000,0,0,0,'MmPay','2024-12-24 01:34:25','2024-12-24 01:34:25'),(4,'USDTPAY-USDT','UsdtPay','UsdtPay','USDT',3000.00000000,30000.00000000,0,0,0,'TRC-20','2025-01-06 07:55:10','2025-01-06 07:57:40');
/*!40000 ALTER TABLE `third_party_providers` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-01-20 19:22:28
