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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$GAB.Hpm6sl8yq/bjdHUNyeC4R6par.rBs4lraXCepQ8sb6cEtkqkx','user','ak_25dc897929d630db','2023-06-19 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$3k1uc5UfBS3FmDAXOdt5pukUbmQFMc.AQJLD/TGOuIy6MSL5x/J9g','admin','ak_9b95964e2137d54c','2023-04-17 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$hrQJDSttzFyJsvYZYaZ1qF35VWSJ1hgphSF1Phb.O8WvAsLN93L/o','user','ak_eb800b70009abac6','2023-05-12 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$Qs881s/Nrq9.X/x7RTJ0e.DgVFwgh75qP9O13rk.SfedQHBS42eCW','user','ak_0511e8eeabfa4011','2023-05-23 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$0MyP3O.CY0eQzXe9YjsAQEdp6vQTPT.W5OVvg2mwY.X7mpBDd8Z1l','user','ak_7bea1939dd73c7c5','2023-11-03 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$Fz9syom7vfcO1ARuJTJ.S..Q4ypH5nFGQ.RsAJ/9yUXz2GWHZ7uFf','user','ak_92b6820ee103e8ed','2023-02-19 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@company.com','$2b$12$7zDGwYh4FrkbZOCgT1uyNoyud3Gd8BLU7FrobeKXgMF/LQvKZpT2Y','user','ak_4f41e0126ecec3be','2023-10-27 10:21:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=22826;

--
-- Dumping data for table `orders`
--


