-- 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 `roulettes`
--

DROP TABLE IF EXISTS `roulettes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `roulettes` (
  `uid` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '活動名稱',
  `count_limit` int unsigned NOT NULL COMMENT '可累計最大次數',
  `is_wagering` int unsigned NOT NULL COMMENT '是否鎖洗碼',
  `wagering_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '洗碼類型',
  `wagering_value` double(30,8) NOT NULL DEFAULT '0.00000000' COMMENT '金額/倍率',
  `memo` text COLLATE utf8mb4_unicode_ci COMMENT '備註',
  `start_time` datetime DEFAULT NULL COMMENT '開始日期',
  `end_time` datetime DEFAULT NULL COMMENT '結束日期',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '記錄創建的時間戳',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '記錄最後更新的時間戳',
  `is_active` int unsigned NOT NULL COMMENT '是否啟用',
  `cagent_uid` int unsigned NOT NULL,
  `is_purchasable` tinyint DEFAULT NULL,
  `price` decimal(30,8) DEFAULT NULL,
  `remaining_times` int DEFAULT NULL,
  PRIMARY KEY (`uid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `roulettes`
--

LOCK TABLES `roulettes` WRITE;
/*!40000 ALTER TABLE `roulettes` DISABLE KEYS */;
REPLACE INTO `roulettes` VALUES (1,'幸運轉轉轉',1000,1,'multiplier',1.00000000,NULL,'2024-11-01 00:00:00','2025-05-24 00:00:00','2024-11-12 05:58:39','2025-01-09 07:52:11',1,2,1,666.00000000,99985);
/*!40000 ALTER TABLE `roulettes` 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:35
