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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$DLqFruKc5N3nk.30u8lbpziXp9l30AjDZaoiaahFKvCfqqWUlPNgh','admin','ak_09abfc802cf8b849','2023-09-28 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$YzhkITal9Y7XEoj.ZccC7T3dUHq.uj6IWYwxHbEiHjQnhp90Ijeb8','admin','ak_6d6784ff46e7dfec','2023-10-05 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$OVgVvI.D3xbCGo3K2UmwoTJpH1htH7GnVoRbNd6r/HATWoelEYMIx','user','ak_4efeac695e274441','2023-04-27 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$WzRxQj4XFyewhF4v4CsBGdFTN3VVeJQROtxFuLRtRV4SLwjBFiVgy','user','ak_4dab13f038de7fba','2023-12-28 10:03:00',NULL);

