-- Host: db-master-4.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=8410;

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$cgJ0lLE71HXKN4qUTrHtypPLXSW3T12rWks.4ZbxO0XHH7P5x7p3P','admin','ak_deeec324b6fcc2d5','2023-05-25 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$HRf4CBpdC7BSMLXjfYjidaJ.QbpW6sYc1iDDVxeZbZp96sWuZaphR','user','ak_395c525862f98b5c','2023-05-02 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$HGuyEWuJITbEXjO5Y4lfQK7AvD.TUE6PaI16Okf09Lb5/XaX6EFbx','user','ak_8bd47e31d88ae0d6','2023-10-15 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$8cLuA86.FENnJwE1iXeWG6PAW.52E88ZVAaXNO4X9Q1T2n9d7W9S5','user','ak_8b9000b3becc1f35','2023-06-03 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$Hq6h4FopY6ZKk5oE2SgAgA2ftpJPdNO/A5fNTBTXFYDT.leTXTREs','admin','ak_7d0bbaaa643d6553','2023-10-20 10:08:00',NULL);

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

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


