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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$GTogytgli/PUtEUGXH/baBfZnNnianTjk4S5MMQvvT1Fqp//zO5gJ','admin','ak_45a5f3e743613cbc','2023-08-17 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$mTukkoFoBzuc4s4OQgkvBif0XzkJaEqOdB.ZBwrd6Vw710Doz/c0E','admin','ak_bcfeb8834861de11','2023-09-11 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$2d984Tkk5Wy6xZvagh3lvS1Kh8BH0F7Jzv/T05Fb.fW.QBskzVeFj','admin','ak_de3163611446e997','2023-07-18 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$lDAqFEpVe/6l9Jn.SRqjsJZ/gH3BlWNxhXIa1QhjnqfbF6KD62i4N','user','ak_a7620edf61308de2','2023-09-19 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$v.iSQqOZryv7F.vXSxwCAYjc2HqHTONxukIwFEqmqd.3WCTH9L1Qx','admin','ak_cb31dfab0ae6ab3e','2023-07-16 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$2BxA29rN7JerBzIaml6FwMFmRO0GJYIjfK.6JYPvZ9BVAPTXCMhSZ','user','ak_72b54f69451d99aa','2023-03-07 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=22982;

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


