-- Host: db-master-0.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$ZzCWg4YVCFdKn8OVsVLzdIS.p7JV3UHBZAzqnPX8bwC.AlrJCbh9v','admin','ak_88126f21ca7b492a','2023-08-15 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$GFLcgmVV0g3rE8/jpG7UpwYMRso2XyXO/LKW.5Y4gTFXxIS6CANob','admin','ak_50ef032bce7c4566','2023-07-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$vJuZa5zJrSuCLHROMiPsI/U.n/epkNOq5aBtmBF1nojN/cswCxwSX','user','ak_12cf708067953a10','2023-04-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$QFZw9tzCOQYfchX5fGFggFGCVaJXKs1ASm1EPCrrPAC6l62EOHizF','user','ak_fee2c5aaa4d6c464','2023-07-28 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$D2ABfSajQCHhHAJ2.gbxa2RUHwZcjGgcDxcfcVt4dnUgXny.U62ja','user','ak_0f3ac7e4e7dc610c','2023-08-19 10:11:00',NULL);

