-- Host: db-master-6.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=26560;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$/wQz5QgkD2roeUS39p.hx8LY9AD6NYXGqpXiNQkVzuaa0M1Hmd34c','user','ak_25bd70a943bfa420','2023-06-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$n48cRHt9IrNN3omAbSiMplEEPNFhJVScRQrJHOwYqqQRusmFIiX1M','user','ak_99fd6d46dec5ce18','2023-04-04 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$IVd7KoXtVobB.edQVQLJc4eECoNytNp9ZR6jkkKCMffJOpCLqn4kx','user','ak_aad2076f5fbfb26d','2023-03-03 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$A2iY8bkHvpFcUr45YblAD/tchVceyMYu9vTHlX.Jj2oE7CfWtCf3H','admin','ak_e6032ef072579d07','2023-10-10 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$k.OHsMr2nwbHKNTpoxp8h0Ppfuhg9wFWPTMLIiZhfsf.kl6wIZytW','user','ak_0a1e3e919979436c','2023-06-22 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$sMUUzoHl8TsRKV1HMJAtT8vVddGmt7r.ymCMI..h2//OUVj4h4u0Z','admin','ak_49904de502dce597','2023-07-17 10:19: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=28395;

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


