-- Host: db-master-5.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=39111;

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$I80yMu8voTeHDUgoLNzG.wsIJPg6eWbR4NTiLBEBTv17tadKAr5dh','user','ak_675f724525247e1c','2023-05-15 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$BekgVhGK3fNa0okhGDlJq2h5rvXlQvTN/Kd3Y/m2M6c5FRtmkGoJp','user','ak_ccdad0f22be74e71','2023-09-14 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$rpxs.rP/erGebzqr0/8/WHmg6EVpS0Qa5hX/Wn53T8KIH0j7cuP4C','admin','ak_2cd9eff8ee3a5d2d','2023-04-18 10:05:00',NULL);

