-- Host: db-master-2.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=34558;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$JY7yZL48F9YSMDfLFQPrTCQ4.NiUS5v142R9NvUQkitV7G7xPFWgq','user','ak_805fa7e5cbac12cd','2023-09-13 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$87h9naAypsxM6MutUqE5KUH0vANfvj0VdAUl5bNNdLV1PG0S7J5EN','admin','ak_a57f33d4343d7a68','2023-09-27 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$7NMTMJwPWfYuhLM0DCoo1GgjZ80MmSBKA./3BpV7oEOXNHVdFy0RC','user','ak_ecfc1339c0a69074','2023-01-19 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$JoSUGlFk3cv6GrUFUKJzgSs.8bWjy26NCQaVEHiYXk6FPiilarCvZ','admin','ak_f121664b85e967c0','2023-08-26 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$jsSaOnFu6WxQXvPQtSif3/corxw17BcUThyNYygx3TS04kTPoFhta','admin','ak_9222a4746b4f4030','2023-04-21 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$TG/qiwuBqHHAvmyTALgtbgr4TJfBfomaFIeCZGoWq0FUVoKxfGbzI','user','ak_0fc0955743fab193','2023-09-05 10:06: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=13501;

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


