-- Host: db-master-8.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$Wy7XtU.iRypZdDz3GxR7BEZIy766haQekQjcEa89hy4/nX/MKX8zz','user','ak_a79a6309f7186836','2023-01-01 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$1n26iPAzckJLoztfaVi1luUvwFBXnxK6mJgpyLXbGNUSz3/CQbLA1','user','ak_1c316f2e13e679ce','2023-08-17 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$2L85fkGFbj66riHFPOH.6T7g23HQWKvrJUIetTHBCuKHReXCqYhmo','admin','ak_d72dfa2d715b9f5b','2023-02-12 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$gtJqOPVri7IgnGgdwX97lG8tYFvi6BWCy5AUpUfttOiSdxbOkPxaW','user','ak_b815a4ab5a1bda9a','2023-06-08 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$u7v.lNOmx4UL0gnnGTvvYeIhGc3D.RNUjjpWRIFDsAoeoaQ4svNsR','user','ak_e97ce86bfe49aeb0','2023-09-12 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$DBvO8liAKrzPAiHpUsLy/nDFLw/OEgV71yJjeN2WN/72ymuskcGeL','admin','ak_b73013f16204b556','2023-11-24 10:05:00',NULL);

