-- Host: db-master-8.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=47380;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$EcR/10VrvaqW1ZlS31vY015zPdWXmIV9aSZxZfsNEP.SLQian6Grq','admin','ak_fb40f86c5ed6e2fa','2023-06-03 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Ta1fYvuLQQacP8E6BIZ3AAMeoh7872BohHO256ksHU8Xqv.OqtuPy','user','ak_dc178354ab7b3d49','2023-04-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$XLBzZp5qS.PjjrZBGRWlmugiwBxIGfYBKj7gxbgH6dYN8GDVC/.zq','user','ak_2e93a8c67ae760f5','2023-09-01 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$fqbt9sVbgP9lsNhG2edUrmT95.RplWNh0MFdI3wPcfJ5i5bg3AUay','user','ak_0ba9d13090ac75ee','2023-05-13 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$fwL9CSXm2em8lYOQCF6u80U/.XDAncsj0hoesT3CkNztqGIwcunb3','admin','ak_feecfa369d29a8e4','2023-07-22 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$ATF9cNceQnNbHQUHMDPJ0/KFu4XYfCIpjNQStwyp6RDqYMS9GPob8','admin','ak_6f83e30bc86d2d5c','2023-11-28 10:10:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=27381;

--
-- Dumping data for table `sessions`
--


