-- Host: db-master-0.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=1801;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$bS8X5KWmNB6TgiVFqa76zWRH46sAtTizRstv/R8br29ou.DJfHRNr','admin','ak_d6485e1b38b2530c','2023-08-21 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$wTS29t92w3psoZjTobJe93k40wrRdeHtAdT6ugjbbYQIwWoUTBoDe','admin','ak_5b20ae0035975ce2','2023-01-04 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$yjtbG1gk0v0xWHGAGmkJPtr4giglReG4YvzxwIUhOSAicYKbyws07','user','ak_b8135b6580948465','2023-04-02 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$K.y/5vlUavnI2w6oGk7bTMd5nckfgN8GtwzkCR5g85JimPc5Ba8ao','user','ak_5b8247575aefdb21','2023-08-08 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$Hvf6eRDq6995waTZ2i6e0B1DHjiHBnR/1Dl4feekRR4JrJlC7.Mnv','user','ak_3d120507f9df64d6','2023-10-18 10:12: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=36836;

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


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

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


