-- Host: db-master-0.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=23750;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$9Uf2J9OJz2r5f8VYoMnibyijjyBXF1gzzUoHZ1Cok6YfLCtkfJNRY','user','ak_861ecb5e7cdbb8c4','2023-04-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Pwj1nGiIxMPolF.erDUju8zubG9Qw.5M1Pv/0ezeT11H6iCxYIUQy','user','ak_fe282e9a611538be','2023-04-08 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$PRFU7BWObpHYkoJG9lZHcyX37I9VDJhGdqgA6zBpxAYC9HJ5tzhjm','user','ak_4378ae689e1849e8','2023-08-22 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$akWG9KV/iNaPEm9lKWqBovn9I6rpJ7kpgXyM6FWAz//TlllnLy31u','admin','ak_4960f68587f7f13a','2023-05-17 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$hWr353kYURrzYj0Qs7ec1fiermYi1Lt8EIkm5n9lRPlAkrZDegwmQ','user','ak_f3d94c901ed5aa12','2023-10-21 10:12:00',NULL);

