-- Host: db-master-1.internal    Database: analytics


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=22694;

--
-- Dumping data for table `payments`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=18487;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$sJ35Qkdp/o4Gi5XQduxY1ug5wq78WHFYg0qAjIdNl43.6nzFcWqCy','user','ak_f1225e66e7b83322','2023-09-15 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$gboddbnmKRKHb8ukVASG/6bdfdj0YabMC4vPgZNtbVL6EN4fX0XLv','user','ak_1576b7941bbcf1e3','2023-04-20 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$ZV/I9bHAGV2qjgUPj3jdkeuKbbngY3xgwRZNgcBe6ZJWh8lxqwtrT','user','ak_94725f0289a37707','2023-10-28 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$cqNofaP0AXTwUGQtLcAeTDlm6Pqj7XiUzyDKy0UNcuB.lXGMxixRK','user','ak_21dc5b2058de3ef0','2023-10-22 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$mXRyhs9.X3xwb9TCmJg/OBVePN6cLoMZ2QTEpNrZQk63mIGDlMsCB','user','ak_3fb062c2377f6e8e','2023-08-03 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$h/AN.l4OLobYVnVqTWbyOZQihfRdfKvrdbDEXx/Dk42xs5ORPBclV','user','ak_72d1c1810a38c632','2023-11-18 10:02:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=33105;

--
-- Dumping data for table `products`
--


