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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$I/g6WIEpB62AyRN/kBv0rtzjIijQc6t.6eiX5jwup7pmHIImFspRl','user','ak_4385732be3404767','2023-05-17 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$LhOJzhSvSBI3vZIiFOXg9dcYhXxEVnLLvWngbwUcpz1jUqG9J3Ip/','user','ak_f6662ef00b81d6e0','2023-10-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$YFfr0Ge1WKr3tsuGv76fOGnRQYn/KCRHqXFER88sP4m5EHTs0oCFb','admin','ak_51226dfb3c3ce872','2023-12-08 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$EF06NYBhp/rCVGM9kcOvNSYbUjmRZ4OKHVFIunoHEoU2bSfp1Erga','user','ak_4e45d86211588774','2023-09-14 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$RsaJvUQghpw63fCzXJYWOc2u4oxXRK694DHefUpoJNZsoX1mNwTgp','admin','ak_7cbe10a98d28262c','2023-06-26 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$Qg7mIzAeNsEc7l.ZMPtO.Jb2jQTALzGfy6AbUhLbXpscuIUMS4LGO','admin','ak_4e4416a2c68ddcbb','2023-03-17 10:13: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=8619;

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


