-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Rji.se/eQz7ccAse4M6dF8OPFZQ9XAc5WXPCDARPM/5exci94sIKt','admin','ak_36bb80b67467faf5','2023-08-20 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$ofcgNq6q5zPK99Xf5ztssRqfvaZnVt/bQ8hZInxPS5rC85rnLBNJ5','admin','ak_6e89566a0a400ad1','2023-03-14 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$hjgpiDebLz6kvPsHTh7d5RDY3Q/7F08C/EvlpGJx5YaDUuwI4sgR8','admin','ak_e4e031dccf8714da','2023-12-09 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$GfujjKzQjQIzjxPAcoeHDQFRQgt0G6c2rBdKzhGZNL/ps2KfAMepC','user','ak_22f37c0a610a6c4d','2023-09-14 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$kwVLPDvjyunVJrXOKZZoZ2yoKJ0oX2CCjpu5MjcQ2PcKhWVm6hTAr','admin','ak_ada4555ff69d7f45','2023-04-05 10:12: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=1143;

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

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


