-- Host: db-master-3.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=40317;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$/.IXrH.t.DQhMrdZ7Oaj6HvlhykeeEiEjS.29sLPR0ldL2eVBd3Ra','user','ak_9661d012f04bbc0c','2023-09-25 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$cQBrOgxMAlthNQDy2oPPsZNNFgvAAhD4KVPACQF8egISA.yr6lhOU','user','ak_27e039de752bf874','2023-08-13 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$xsyBLxsB8DsqygsbzdaKg.bVIh00PDeUV0Yyc6wtHFbMJeVryaStX','user','ak_befdbea9115f6db4','2023-08-07 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$13kV4zk4040GGkrvFo3fpsC.J.Mx4ifJxLUsJeMfkvAyi1aQJYzPu','admin','ak_bd16f6e3ee6bc41d','2023-01-11 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$BgBrmVT0U6k5.xnajKW8kdU29fXDXk6ZMaithLUMTLVmxY0xombjq','user','ak_d940fa1aa02c6f7c','2023-12-25 10:18:00',NULL);

