-- Host: db-master-6.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=3992;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$CsNGRwawPqfnzYT2Ot2WnD6iHiAJPFGIqND4tY.FtEKaH4n.7ngxX','user','ak_43db650daeadb79b','2023-09-16 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$6n770aR0HiMvUT7MTZSnSq96wY19M4nSPG6uHvs46RKpeVWBFhHbi','user','ak_31c1cbe9d500aca6','2023-07-05 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$RdZ/baGaQhXzHNI82JdzcHi7uAFgcVMUA10o6C2aiQ.xcHHAXAZHc','user','ak_e62104b47121909e','2023-06-12 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$zrMrlD/DrK3cHHBhnyrtBC8aCspcoiTpaHaW5RG0Jkbl0mrxMHu2f','user','ak_0eadb1c0cde17c72','2023-08-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$QixLnGMRppBC5L.GATIhFcg0m133oCl2phtc76yYoRX29KJu2IsCd','admin','ak_76e047bad3be1724','2023-08-14 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$y/wOtxgJDPTq.KAawydUxhUB3HSOlJ0W2IVEtTcUMtjhEn0bcKuMH','user','ak_b00bea9cdc5d6f3a','2023-12-08 10:02: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=29932;

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


