-- Host: db-master-6.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=47682;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=12976;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$bYdAMXDGJQq7uLFFHhIlkaZmzhKzAsT/EZzavHLMHODe1XURx3pw.','user','ak_f448a40cc8fde869','2023-10-11 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$s44ckOSyX1j0vp9CsNnd0fWO7ENXpADH7fwQ5PgVLPQaLwKblI/6R','user','ak_5f3e201c216c271d','2023-12-24 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$b0TpTESmFRUD4ccabDRuXf2FZLFK3xF1WYnlU8Obau.kEllNGvXhq','admin','ak_af2e95c0399a2fac','2023-01-13 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$cS6OtxMVMVGzYx6SPMSnPtN7XnfIskX86PvEy.S6jCxdS4OFCzZUU','user','ak_a341d6e267b9f817','2023-02-12 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$tfs.Hum7cHIRgEgO9DztOiwUlNPHzGDrG6.ok//KlQCIQXXC4JfJV','user','ak_959a12afec23cd53','2023-10-09 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$US8tXx8B1Q2rTb2EcgK2KfHhisyZHpn8C8RQVmesKXGdo3nNAksFJ','user','ak_865acfcab93e9b35','2023-12-26 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@example.org','$2b$12$UG7vigmdARvQBY..d9CPmK100zZf9/FRGU09B1m9CcRIC3mbZHyjp','user','ak_78df948c842880fd','2023-11-01 10:11:00',NULL);

