-- Host: db-master-4.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$SL34pRxSyGNnpkzTNYjqOK4li/B6eLESU/RVm6KoBo.qxAJxvQGzs','admin','ak_0405167c6fd3459f','2023-03-13 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$e9SZ.iVZ5jkCuwaGfkl5HgCbn7pLLdTJT0IlMD7DaGVG/K7zfDvLY','user','ak_7bce915d6c9ce750','2023-07-21 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$lqgpB9eRR68Qy/fL41Y/st7xc8uA7Zxfq4vaF3kkAvsw7ANvOif4t','user','ak_a131a30893d4635d','2023-07-25 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$ZepT6U74uAWL2qWZ4OyLTuzMhtp.NSgOvRxH5rStM1Wtpn/VhBC1f','admin','ak_fdf0673e6168e343','2023-01-02 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$pdh09SHlMzdlnqz5Su6h249QHQvFb9SDYYW61Vd3/6cdfZuvNaQx0','admin','ak_4e6bdcbb30655714','2023-10-14 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$1UHqU.bHkXn1vnEV24GKUD1Q6YeG.pBRhaCQGyKaqEDw7f5Ke3tmH','admin','ak_a2ac87e66dda32f7','2023-06-12 10:16: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=37669;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=16672;

--
-- Dumping data for table `sessions`
--


