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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$sA6szveYXFptqxmGejZ9RpKJrbqPDQ1nnOCaWIrUVJ0aIWDu4Z1IR','admin','ak_a5bf6d11a940cc2f','2023-12-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$PfuJ41tCWlmiEkd9yWhathVezGiBD/Wvyp.eV6KGderKR680c9nGo','user','ak_a37501ff83382e3f','2023-01-26 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$3IgilFUtotXZ.YKZ5aL4l2tIv4DHpOTT41wrx5NwZREu5m/BE373c','admin','ak_85a5a263e50b9177','2023-07-05 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$fSOB1ZEoi7C17lKeDhG1qZPZLq4v8YmLXUMvu4XCBtVbHJVEnERmW','user','ak_e01250a8ce3ff095','2023-05-15 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$dPButsWCL1Ab1m1fI4EcKD6tUt03AZaR3jiQdtJqdZkbqGSRVY2Kt','admin','ak_6e949e19eac71d80','2023-03-06 10:13: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=2641;

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


