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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$6vrb52BXVzNNWi4cZki6TzISV5Hn24jLQLGeEFaTXU3o1.XcNw9k2','admin','ak_a2a5546f16b8e6cb','2023-02-03 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$um6y1pY1fkf9nBfts.NzyzswhiK8g99CJQtPrlvrD.fEW1MauMXSY','user','ak_5555003fda9af3bd','2023-04-12 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$y6NqIT3zceNL0rE9Fa1kvusV6lYHzkPjEK5NG4ln6svbQgTyyZHdv','user','ak_849222bc123e4223','2023-12-12 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$lNmxQPDc82Eg19WjK6GtGJqn6nBiPqJtuIG5we8zGcDADicgwYimr','user','ak_42c307e631b5fb99','2023-09-07 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$qOwrddtuqfSZKgRezIC9lUvjMQP0cz9MEKD1GK3YGQIFfvsfk5xIC','admin','ak_f2f034e5573b52d2','2023-08-04 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$zbDb10lQ0WKBg/BPYXbU97F0.nqyJg0uBDkO1.r3HtmbSFjoEdZ5c','admin','ak_9e5ffdd3971efb56','2023-04-21 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$DGwEIfTzvtKO4m7TwuL5LmhDRPkpi8HCVICWQ7WClwh0vBZ.BWwPt','user','ak_81d6baa47e504d35','2023-09-13 10:09:00',NULL);

