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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$BOoiZx.D9mDlBf9iQxkoW/JGDV4JfcpalZawU4xwQ6PEK85mVJSXG','user','ak_ea4d5d359ce62775','2023-02-14 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$pS98axPB7zxtA5h4ij0F53Z1sVpuyBJv/zo/WhN/DG1RCa0j/lvqJ','user','ak_47bfb9f7c7519659','2023-09-20 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$LHoO8meKsxmMuRB7uV8bqe5haBMC8JQOcAhSWOlE.J2Tqu0AyivmW','admin','ak_6f2493185e987667','2023-09-02 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$1YoaTlVNK31NAJRSzKcej8eFUFvk59vkPIyNszdpVIHShhCqLnNd7','user','ak_7a976694564c5fc3','2023-04-04 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$z4sDHjUag0el0WBMi8z1Hou4/8CHTgxS.vms.C2Os1wxZFo1LWXqc','user','ak_6a591222c8696f55','2023-05-16 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$WsGzsXJ1NGmKcma3WVvsfUe2lVVU7JCYQ8kA0FWdrFY0z/JOLM3.s','user','ak_1b0f35053d9f1b78','2023-01-23 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=3001;

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

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


