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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$PSZZBRFGV12U7ZMJLayudi1fVmB6hSDhAhsmxWttkbV0QcZASPj3m','user','ak_ee1f844dd23f6d47','2023-09-18 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$d10cfRXeh6z3d.eGv04QsYrdIw8w9qHDzgSj.4/WFHdPXJ31pzvtq','admin','ak_01c9152292a9d70e','2023-01-06 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$43S3L6z/bNUnJn7kX.aj4LkmoiZPnrk/hvoKlckWxzSYjeb4/J1pO','admin','ak_0018b918e53a5d6d','2023-04-11 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$iwvL5XwFzDh/1LPPkgpeDTSO3U9rFPrqXGHJG5UntHpCxaamLXrGH','admin','ak_f03a9691b6f764b2','2023-01-01 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$LBIe9/8z6IUiwu7d0V15vVYxaEEY5EiTuZ4q6EVXhi4pF3HAoI71D','user','ak_27d3e5c4682da809','2023-03-27 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$Az7vDOp0uJEVEOh3/E9/VNTfkRQvU5TlEEvtEeJtne2iGaPo0kiOF','admin','ak_ed4dcdf51027ca02','2023-09-09 10:05:00',NULL);

