-- Host: db-master-8.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=50099;

--
-- Dumping data for table `products`
--


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$NU7PhCcsvWZyeT/w6DyuUtphGmpjefZEgKYj2tQkfayunNxMuvu3/','user','ak_f4e81dd1e207ac12','2023-12-21 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$hCiulL/v5edAVDPrgUITnysuLMFg53qYk9h9mNiuna1Nx44s5.QRF','admin','ak_f72d0da27c8af822','2023-04-21 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$HmuIMWApAcXng5MIC3Hgp0V.B79fOGo28Lg8IGDmC4QTB5CfIfmCa','user','ak_814c2c75510afba5','2023-05-21 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$Ki37x8S/nmIktiJxFsI2A62n2VrVaV7l5e4IGZQAMoWrEoe95dUXR','user','ak_63536d61acb4861a','2023-06-05 10:03:00',NULL);

