最后修改好

This commit is contained in:
Flatlogic Bot 2026-02-14 05:49:34 +00:00
parent 23ce9c4446
commit f322e98994

View File

@ -46,6 +46,7 @@ DROP TABLE IF EXISTS `fiat_orders`;
CREATE TABLE `fiat_orders` ( CREATE TABLE `fiat_orders` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL, `user_id` int(11) DEFAULT NULL,
`order_type` enum('deposit','withdrawal') NOT NULL DEFAULT 'deposit',
`amount` decimal(20,8) DEFAULT NULL, `amount` decimal(20,8) DEFAULT NULL,
`usdt_amount` decimal(20,8) DEFAULT NULL, `usdt_amount` decimal(20,8) DEFAULT NULL,
`exchange_rate` decimal(20,8) DEFAULT NULL, `exchange_rate` decimal(20,8) DEFAULT NULL,
@ -56,7 +57,27 @@ CREATE TABLE `fiat_orders` (
`proof_image` varchar(255) DEFAULT NULL, `proof_image` varchar(255) DEFAULT NULL,
`bank_account_info` text DEFAULT NULL, `bank_account_info` text DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `transactions`
--
DROP TABLE IF EXISTS `transactions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `transactions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`type` varchar(50) NOT NULL,
`amount` decimal(20,8) NOT NULL,
`currency` varchar(10) DEFAULT 'USDT',
`status` varchar(20) DEFAULT 'pending',
`description` text DEFAULT NULL,
`created_at` timestamp NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
@ -75,7 +96,7 @@ CREATE TABLE `messages` (
`is_read` tinyint(4) DEFAULT 0, `is_read` tinyint(4) DEFAULT 0,
`created_at` timestamp NULL DEFAULT current_timestamp(), `created_at` timestamp NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
@ -102,28 +123,7 @@ CREATE TABLE `option_orders` (
`created_at` timestamp NULL DEFAULT current_timestamp(), `created_at` timestamp NULL DEFAULT current_timestamp(),
`settle_at` timestamp NULL DEFAULT NULL, `settle_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `orders`
--
DROP TABLE IF EXISTS `orders`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `orders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`type` enum('fiat','usdt') NOT NULL,
`amount` decimal(16,8) NOT NULL,
`currency` varchar(20) DEFAULT 'USDT',
`account_info` text DEFAULT NULL,
`proof_img` varchar(255) DEFAULT NULL,
`status` enum('pending','matched','paid','completed','cancelled','rejected') DEFAULT 'pending',
`created_at` timestamp NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
@ -165,7 +165,7 @@ CREATE TABLE `trading_orders` (
`created_at` timestamp NULL DEFAULT current_timestamp(), `created_at` timestamp NULL DEFAULT current_timestamp(),
`admin_status` enum('pending','approved','rejected') DEFAULT 'approved', `admin_status` enum('pending','approved','rejected') DEFAULT 'approved',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
@ -180,11 +180,11 @@ CREATE TABLE `user_assets` (
`user_id` int(11) NOT NULL, `user_id` int(11) NOT NULL,
`symbol` varchar(20) NOT NULL, `symbol` varchar(20) NOT NULL,
`amount` decimal(30,10) DEFAULT 0.0000000000, `amount` decimal(30,10) DEFAULT 0.0000000000,
`created_at` timestamp NULL DEFAULT current_timestamp(), `created_at?` timestamp NULL DEFAULT current_timestamp(),
`updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `user_symbol` (`user_id`,`symbol`) UNIQUE KEY `user_symbol` (`user_id`,`symbol`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
@ -216,7 +216,7 @@ CREATE TABLE `users` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`), UNIQUE KEY `username` (`username`),
UNIQUE KEY `uid` (`uid`) UNIQUE KEY `uid` (`uid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@ -228,7 +228,7 @@ CREATE TABLE `users` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2026-02-12 14:31:49 -- Dump completed on 2026-02-14 10:00:00
-- Dumping data -- Dumping data
INSERT INTO `admins` (id, username, password, role, created_at) VALUES INSERT INTO `admins` (id, username, password, role, created_at) VALUES
@ -237,4 +237,4 @@ INSERT INTO `admins` (id, username, password, role, created_at) VALUES
INSERT INTO `settings` (name, value) VALUES INSERT INTO `settings` (name, value) VALUES
('chat_greeting','您好!欢迎咨询 NovaEx 官方客服,请问有什么可以帮您?如果是充值咨询,请提供您的充值金额和币种。'), ('chat_greeting','您好!欢迎咨询 NovaEx 官方客服,请问有什么可以帮您?如果是充值咨询,请提供您的充值金额和币种。'),
('price_control','0'), ('price_control','0'),
('win_rate','70'); ('win_rate','70');