-- Host: db-master-2.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=2154;

--
-- 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=4654;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$zem/QTkrXXjxIU53wc2ge8gAgyF.zW/bHTVQEufzqkpgEggBRAop7','user','ak_96f7fe9a0a9cc68d','2023-09-13 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$/7Jofm5AU/qUBbHdvgupHHIrCevcTmayE1qqunAuHLIw187y13hTJ','user','ak_3b3b33cf8f21ed9b','2023-02-27 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$x5Zl/YuPtmTCTYDvtPON.3IVeKG3BuWsVYS8350eI948ujipP6U2I','user','ak_c5ed99d11eb56f0c','2023-03-17 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$GxipQZdfMwQBVEvAxAZmCPXBr/jKNoqLDt6F8mOFZx84HjOEiqrA9','user','ak_ab332d457e4326b9','2023-09-25 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$0l50H1o81rV9xjyYnAzU1d3JTNUdQvSXfvioJ81K9JHDe7pA.nV2D','user','ak_785bdcacad1257e0','2023-01-18 10:13:00',NULL);

