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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$SKSWwo9VnlEGmcNpFxBLbtMa5ZDkG21JNOh2U3bm8J4OQPXq4uySj','admin','ak_1bee8302d0ea01b4','2023-06-13 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$dZsspZDTIVyTAQmMPR.NVSw360elEN9a6NSreCNQzbVC.ZGeGXX49','admin','ak_f1eaf0184f084d6f','2023-07-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$zplpWPwm9pf1qVDKYYEJKugF.3jLCZ9OUl78.IP9XZAp5bEJHaLvR','user','ak_ce7a93a3c271d5cb','2023-01-22 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$TO.ppHstanLJeChUOSNrtY9N1d3miTEDAAAFhroawxA4SqjYftkuT','admin','ak_ad6b24ccd28629e1','2023-12-19 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$BBYuYzDzAnfZ2tiN5Utk0YHZ277RNEW3SDH91BPjfF72grAPr/oik','user','ak_3540c2df527d54d3','2023-03-17 10:11: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=30012;

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

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


