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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$SQnLeFQutX742SCXQ0.Y7rFIlXjHRffnIOvK5YxLOrk3EisvxCKCv','admin','ak_66e6c8e01c5a8b38','2023-06-13 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$d06xhPyprE35bfsAhjiVD2YYN8nsT7O6qqg./PKViN9JvFKhNDO3I','user','ak_41fd0e1c0cec0311','2023-08-20 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$G7wWDku6F3zXxuWMUYzs6aoCOz8UvWzHZHVpgjIUF5HJ.oJApwJFg','user','ak_d5256778da0fcdbd','2023-01-09 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$X0EK0Tvo1O4qrRokS8SjMiCunoBR3XI4IWmRYczpIQPwn4LwYPzbK','admin','ak_c5cd21acaf54623d','2023-05-21 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$UNtJ7kVjDR09GgGa3khq7UEmVmiHOVAct2aG8yP1gbVPqvj01oY0p','user','ak_d635bffc6a5d19ea','2023-11-19 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$YSuFOFEDseY5sujdjVKyrCqu5fYgK2jvZXdz9FLmPWKRY0R5Aq.Of','admin','ak_557fe6d076667fcf','2023-01-25 10:13:00',NULL);
INSERT INTO `users` VALUES (7,'root@corp.net','$2b$12$FWXvVvo1/DgELfrQ7OW.vy0TtXQ6tO3DIkKU8Te1nMNPkB34FWItT','user','ak_f21b980f3ee09f82','2023-11-08 10:11:00',NULL);

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

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


