-- Host: db-master-1.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=13253;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$GehB3T.VjYP7YvIp22oqEOXvUH54qx3XN0UmeCKqImTho3v8WIVXu','user','ak_ee8a3b0dc5e0fc8a','2023-07-13 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$cZt30xKvPU1xp1gHSAH/vtwaupwMqESxr2HkmswGz5456O35lSDXb','user','ak_4999224a58b91623','2023-04-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$74joD6BjriKB1zh2pEmHFHqP0wjji/OKmr0gvxywi8vI.d64os0Eg','admin','ak_8990593d01a64377','2023-04-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$tZ4EB5jxv6SXuyHVsPyv0TwxY6zgSx1cIM0ulN50QEdNOoo6sB5J5','user','ak_faa4cd98b3b905fd','2023-01-08 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$6hfBIYOLpQ2ndtFCtU9TXe8J9Z6hXuh5Qr1a1qaofpN6EuWigXWFl','admin','ak_19771f544522e875','2023-07-07 10:14: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=15667;

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

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


