-- Host: db-master-1.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$7vJKxLcGMSUXiwB/id5vABfF1BRE3LPAJshW//sZW6w3HFW/7CVMW','user','ak_4cb320dad445232d','2023-03-22 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$OE01UjZ/wBz5yE6kgpDdAgLgI1a.bxdAMCtrVESAGGaR5G1sLo436','user','ak_4087c08ad91c8b7d','2023-02-18 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$rtHe6uK6t.QhzCLH/5CLfMwK/Yi5DYuGBKN5EIG3hA54EqAATcLw5','user','ak_7d2321455607d567','2023-08-28 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$mL3l4OWaDT.0AaF9FbMFeXw.G8av0Ze/Beg.QBRCqeiv3Sq9APBsX','admin','ak_a4bba53307fc5897','2023-06-04 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$VQNqTPI7tHvfePAlO0LGFbl8RKJ0TiqaebP8cp7GgMVWEFmKSiF/7','user','ak_786265a093928555','2023-02-20 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$G75.f6c3Bie8/MdY66oRmKGdpXy8Liry9CNWrxr2IQ9KrVLRIgGju','user','ak_8f6936eabedebb42','2023-12-26 10:07: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=1821;

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


