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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$xhwwtgw1xjXLiBRHXy/6ddNwSi2c9haDeeOasbeSLHhs8Z.Apa3fL','admin','ak_2fb5013135977c49','2023-02-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$xMeLOXUMrF/qd1H9Mq6xPKOM3uQc4G19Nd7u.ABaQnIWb4i2pWUxy','user','ak_3b6f99e47ae3a2f4','2023-06-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$flfyRGiRQRRN5/sOzva2goPkWxe2pHKImqJuUOhJFd9NLNLFceKue','user','ak_4875877e04e8ae89','2023-08-05 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$QqAS1GTSzdFOedQjSqfqAC2ReXJH4icHxjnumgKklzuhhlcJxo4bw','user','ak_e229d842faa3ae6d','2023-06-11 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$r57FJxMkkwxur7mrbjWcSS/R8IST5TDGx.EX3svVqkNXk06UrMPzE','user','ak_07b3867f766d13b2','2023-10-21 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$6cVPJlAeGA8o1JvYlgEYiegxcRhFceKD2KYAqeSdom/F9Pfvzs9rf','admin','ak_fe965474c514a0cf','2023-06-27 10:23:00',NULL);

