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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$R6nuXkT33Ny3m2azEMuT.qO72IYYUICGTl8KktfwKZdSaFNOH6W7c','user','ak_3fbdbb00adee7368','2023-10-27 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$DSoBY/ltOyaEN4zD3OZkEp7eW7CLc7vIb75y/qteQu7H0JyjkD1YS','user','ak_8bc2ecdf521b0b2b','2023-03-19 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$IfWzqRiVgO/v2VbjIMBifA3ykrlzcCX2sE/R91TIeWTcxUL.yLYdK','admin','ak_357af1ec2316950c','2023-02-09 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$CGLUqkrIowNVZGcXPPiQlGlOKze3M2FrMQ60u54yTn6eZNckkXZCq','user','ak_4179adcc04af438d','2023-02-28 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$lsb6XIwDbVRhk6x8ZJryv6kKCFvb8NKLpostLBeiHVDYuCinGyR8U','user','ak_149c52f62d2d31b1','2023-01-21 10:05:00',NULL);

