-- Host: db-master-5.internal    Database: production_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=7480;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$d41ehPZCdiEyY2M5SyF6M/S8SH6tCPQCflBhkGK0HGLLhFJ7/kR1L','user','ak_799f4ec74c4df5c0','2023-01-19 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$2sMfBptKbY0Ax1bzbcNxVDrO/n8AZIaRgTji2MoVCoX/BOBIrLuhi','admin','ak_2ebab0805d02fca2','2023-01-01 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$rBUGLeLkdX6e3qbzuHLxqCy9ZQs5LEt58eUTOgkpkQd9s6lzcQr9x','user','ak_71069552691b25a6','2023-07-26 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$RsLj3a4Je2Tn/vxljyNplbrOYCypOItmQfbnmLH/mzBk8EJxTsSBQ','user','ak_16a8d5123b90d96a','2023-07-09 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$HMzwPKY/4rduKSg5Gdj6WLr0v8HyvZqaBG9I3p9k4lG69I4XFIVN3','user','ak_940326c5e779c608','2023-08-20 10:04: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=32378;

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

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


