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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$y4URsxRZQDHXSQ2Lml0t.BYoGrP7uqVsS7.hB9RFGBhf6r4g1EP/0','user','ak_eb3ffed7ba6bd938','2023-11-21 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$BWDkcWj1AuvW7Zjm7ywMoCRT.sTr8MgOa7PBqV6Yf2Ao3lqfRoq6O','user','ak_62c999850016226b','2023-02-10 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$QzTk6CH8cBO1C1qQ8Mb0FizsYFr.EUGHdEjSa88cF0.COeAaTC9of','user','ak_92777fd5b4dfe8c6','2023-06-17 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$jWExZ7J9CWTD0iqaDC7SCu8POmvBMID95psBC6ZadcBns8dO2mGVQ','user','ak_f1d0732f065caded','2023-12-28 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$r1ufPXyd5KelYzOBLOva8TrzXYpaiYyzyTYT1nZvn3U1barhsULaT','admin','ak_97e18f6db8277582','2023-02-14 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$nWDWk6FX1BefP4xt/h6BYvflmzDQ/VVG5j6gztf4grrdPA13mFzt6','admin','ak_1a8fb1d13eec9d57','2023-10-09 10:11:00',NULL);

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

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


