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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$iFQBtviHy7sRh1TQSwrvbOVK61WOlDULEa0YFsu2SCHq.ZOYy0B3k','admin','ak_bc0babaf5cae9aec','2023-10-28 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Zy4GJRhrv.upxwLxDh0Wu0vSqlU1RKh89aGG.sEGhlqXkzKjZLVFw','user','ak_f50647b45e841565','2023-09-26 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$H8T6lktSEgmpR99OokGL5wQ0gxyIwBX/OHZEx/t1yxEENru28B5vN','admin','ak_658f62454d430637','2023-08-25 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$yhFt0J7TI4gFWkaQdYZ9k4nEDkkWLFhvDWCYFk4a99js6daOqryP.','user','ak_0981e3d46023b917','2023-06-24 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$Uss84B2E5vpyA20P5R0hnSCYp6Bm.QMKxQQJ.GjZQ5mNKhzpiHxOf','user','ak_9a5b72fb320b8c12','2023-04-04 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$zYqNnchporwdu4.yCi/FhfYXAKyTpaPIOKyY7jbIE3XYFzrzelJ6K','admin','ak_4c991f1b0396996b','2023-04-24 10:22:00',NULL);

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

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


