-- Host: db-master-7.internal    Database: webapp_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=2977;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$1wh6HwF3n2eA1BOFYRYU6lJIU71q5afhoPo.0gXeUlriktwbvbJtv','admin','ak_e03317deba80c692','2023-07-10 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$w0J435FnWQN2Re8tvb.TxOCBh8PhnEbJorWk.QYdIx/3HOAUqqxQW','user','ak_df45e3761da682c2','2023-01-06 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$mlNQpaUT2ByGDx2n1D/wl8JUNEMVmwheLxuLAJ7/GjtJunYr.HF8c','user','ak_f4100ab0f8544cc6','2023-12-27 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$T.5CxdtOsCH/snYAKOzeuXngA0lGoNUS4vXzMgAKoKBF0YfxOWXiv','user','ak_7952cdcdcbf1dc85','2023-04-05 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$Vzxr70OmmJ1D1PafDM0WAP33SlxcE3VyRtojUkuSPWvegPILqEsBS','admin','ak_01c947dec937e082','2023-07-11 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$xZNK9/BToGmOH/WW0SyvfjiHvr1BvRUQ4GioTbIKPS0K5G1qURGK5','admin','ak_4e8744a62afbfa54','2023-12-27 10:22: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=9828;

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


