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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$BwiaAhaiJFM5ogS.dsGbQG010PBsZ9mERDYBRdx4oUYy0l8zG1zA.','user','ak_7a2a822f14c9d18b','2023-03-26 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$DaOFyEZJ/u0FTBAH7HU5vdbgEIMVVYVAB5ll.T8Bo3vAMNgfvwIJY','user','ak_3080a9b3a04fc37a','2023-06-07 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$iIWhS7C6XQRaFtAVeUFcwsJzcw/uve/r/7WfbALm2Iih5szKC8.SA','user','ak_69e04d8f64dd1781','2023-01-07 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$QHuhHrzSGqjYF.hbdc1TLrNczmXcE/yzNe1w0BOkXHfUVTWrc9o37','user','ak_6989d83c47cb32d1','2023-03-12 10:09: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=28931;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=19556;

--
-- Dumping data for table `products`
--


