-- Host: db-master-3.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=19416;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$wuWfKLgEQMLN954TxwiAGV2sVwTIQfFmzhp6jPoAFrmWA76kvJuVS','user','ak_a87242412a817ac1','2023-06-11 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$pJCvePlPZwnb6TddU8fEWjtrDOIX.FtaT6VDQvX5lOA5g56D8aiwx','user','ak_d58c86170487169b','2023-07-20 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$.7XrnbZ7Sq1cJtS4veDkxxsY2veN2nPWAP9oRfeMEQOcPmgrHSwv1','admin','ak_6b0f7cf2dd85c994','2023-05-20 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Lg3Da91fb9xIz2DRNLwb7.L.vQCUHqceeoufRHd/SafGxAbUqxtP1','admin','ak_26617a8a4435bed4','2023-03-21 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$XLV0H0wCTBO4EsOVZ6rAQ8h6fXjQgsBw3PlqHDFvOSZbb8aNc4qDC','admin','ak_72b3ccb7f3dccad5','2023-10-01 10:15: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=44181;

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

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


