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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$ohT3HMjG76XsE.lYWXsRm2ZJZhB42Xva6dl5qRSlv/MTCp.Hl5Lp8','user','ak_61ffa9a3591f415c','2023-01-12 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$acQVN0Z0ZOvNchlVbNR.QDyxThMz5.ir/Oz/qwv032XmlIGuLRQdD','admin','ak_6640e6fd890e25fb','2023-01-15 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$719BW1AVpf3Q2c3i/eMbSV6jOdT/y42ozUj0NG5udGH7kTVjbOhap','admin','ak_fb95dcdf53e8daf2','2023-11-11 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$QK81t/tg7lhZ3jchOLMEtvoYLgBHFD.MKroj/8p4/pBvMqW1UHfe2','user','ak_ff903cee9793dde6','2023-12-18 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$bLPm89WfuT8gpzkrNtjpEpRmMfMC/SNRo23iQAYhqWzi.oQzS0nCK','user','ak_5b705cb2d7ce5204','2023-05-07 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$9orVF.RabwMuGTRAK0ITheZcG5qqQlm1uLPYGSgOTXr.fPFGuJD4I','user','ak_8d7e87cb39807b20','2023-04-15 10:07: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=45824;

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


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

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


