-- Host: db-master-3.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=44765;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$HVeM9eQ/C9iveaaWh7jq7gsBtVwKJtFpBwyC75GcGT6oj/xlZow6W','admin','ak_19dfbb271e5dbdf6','2023-12-05 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$1xx7ivdgfWdcfGjIKcQrOxthg7iDPpjxbBM8pSJ18FPfhbOTsQpa.','user','ak_51a8d4a7b2d4f26a','2023-10-28 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Yiy3nFkttgSEr1SeYdL9C9BZxHn7F3Sthfm9iaABxZRRmiKea3g/U','user','ak_981923ab15499ae8','2023-04-02 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$PR46Ugt3oySFt6fJlp6/JrfQGK3eaJasO/EAArpP7B/SAssLf5FlK','user','ak_d9d061c0fc34a706','2023-07-17 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$VtX7r1OK5TP4lUDLn46zAY.5JsqvqxOX.Neg3dZYFwTgrs6mGbdk/','user','ak_7d6e9ed7933036f3','2023-01-20 10:18:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=42598;

--
-- Dumping data for table `audit_log`
--


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

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


