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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$1zTapDuhxZZ9mzW25paKXTlpvNOL9QSjPLpSrRYhb4OetkL./qqVZ','admin','ak_87974e9f489547b4','2023-10-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$5EL9SmluHPhkpCmassu6ay3p9kTK1kChrwUv7YJq2iRe1l2rOFihY','admin','ak_c14b3812fec7312e','2023-01-02 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$1XWAifFUa3rafqccC3DOmLodBpgmBbF/7IqLlCzr72pGGezmjUtlW','user','ak_fee6760bc1caae68','2023-06-08 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$dVo/LxI07zFCAqg3R7C.YMcibE6U8f6yAttVLLamnXt6L6WSBcF1F','user','ak_0ef677800017efa6','2023-02-01 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$.srqp7BZUR.OpM/pEpCte5DcBKEKIJMaQtm.7/5SWOcKaIuAOlIQB','admin','ak_f11d194cebb6ff13','2023-04-26 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$nNsEBdETXvZoToHoZOnnsyUm8ML.NdWSmkDluJ1bDCAryrCG5/iSl','user','ak_3d524dc7dd23e527','2023-07-26 10:18:00',NULL);

