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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$UUTKI1Uuvo1OccKLMMg17NZT5xjUCTGkyCLaNDdANOlE01BuXgkc5','user','ak_d7acd606891a95df','2023-04-05 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$tp5dKAEzoEYqWU1vmI82yB51f/CLtiOWkObEgN6VRMVN3BF/WFvYA','user','ak_f10b0523ac0f4fda','2023-07-19 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$xsSKADFPIPyk9VumvQuCOx7tUam/JT7S0tj.BVRgRIEND6321Yb8F','admin','ak_c8ddb2aece732d9c','2023-09-20 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$cdmaSipOmtNh6af4NoYRVNDBDX09BV5ua47vs3bet0fkSpBqpgh/E','user','ak_0518716712576623','2023-11-20 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$fFtjfIF/lQHTcLDSRKnCEcsSwEUkb0iZrcMEqnvgx4Ou7pjUJuNgN','admin','ak_adfe075314a6c6ad','2023-01-22 10:21: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=33524;

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


