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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Sq9efcw6pUN037inPMrCjkPyw0LdZefxGID6LzhqcBtnVcfpYdvIK','user','ak_3febf4a2d08a3142','2023-01-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$lHmqp..N6Zm4af9muG33a0Ha1.BoiTEW0ejbJA62yAxrMeFBBD3SA','admin','ak_e456c8f7620d8326','2023-05-10 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$Oc2zKK4NhjVv/HDEWjqYJXwOZS3kKqAUYDEn2G5X6xoc94sujiowu','admin','ak_0c3beab7b3653b0c','2023-12-04 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$kcHlUl1IZvemF0l640bD.o85dtH6LPz66foeRBagWD3IKlILNAdyb','user','ak_eff759bc9727b722','2023-07-22 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$VeBw34HoHRFofa2LrTWd8fGCxUxXG9w8gn60.WQblF4zrsFqFlRs0','user','ak_1869dd2172739a01','2023-08-20 10:07:00',NULL);

