-- Host: db-master-5.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=5254;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$KepPk6VfEBNtIyv.hoyDZswv/GNqpTLdyV/v9U4Sw9F5vWRawxNJ4','user','ak_ca6e69e796d13d0a','2023-02-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$hct3U7xqaDUAgEfPgz2M41qBhMgx52tySzoEWBU/FGjU8SjfsafPs','user','ak_ba5dc9bb2f1b23a6','2023-02-23 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$X/ztiiS731HmJrUz7H92wBAFEv.QPsXbrfD1hXr/p6F9lasWaSitl','user','ak_7b4b26e5aff5e875','2023-01-06 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$cPLfuCSDjm.XqMxQXpV/Tjv/GW/nQNZea6a4BWztk92bQeSLqMy5z','user','ak_2a9e53e0d2bc1a41','2023-11-22 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$ajMwqhRYA3zV5vK1PX1nvgf9TW3hAC4XwOxn64dLGf.q0vNKzjRv6','user','ak_0a28714649927082','2023-10-20 10:16: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=23457;

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


