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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=30173;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$LHhlxXhNVemLvVEXf6Rp.TV0NrDR6nL/tWL5Z9E6Z.EKPYTq57vTJ','user','ak_1a5beb3f03db5cb6','2023-12-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$/mjYl1qdbEW8rXXrIxJuOwuyFPfTIRNUg6959NoYjx.VNQLMtvZ7j','admin','ak_cf46943809d2bb56','2023-12-21 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$2SHdO4x.G2lxx3w.VSz6m9SD4cL7GawTWClcnUtu0NsG4GQ3oZYRA','admin','ak_be3d5a93e84cce91','2023-12-12 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$WX5Y8eSEYp1LDx6C4VNKfaip65zmjuJO7RxIB3.F69nOH.Dvh1oGm','user','ak_cf1c51ad77d54264','2023-08-22 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$LoGGW77dIULYHYa65czFDFbMLM/36wZyjdEIovCTa8Ap70RsF2m2J','admin','ak_f405ecc337380f90','2023-06-01 10:12:00',NULL);

