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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$hs3va3pofdwSliex/Hc5E538CKq61yCpMOrFiwk4XRGBIluQOtrxu','admin','ak_c3b505a6c3fd71f9','2023-10-05 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$SBd8t7z/gM0nQ0j3MVb15sUqXjNpKUmiDFYl6hTdDiA.T6gjH4tU5','user','ak_70143a4891cb0e13','2023-02-09 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$6MY5A6lSTn5mzqQRwJKdFEYyPr6YFTqo1zKiq5BAnHzuTiHbvhDXu','user','ak_218aa19db44ba0b4','2023-01-19 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$QbYqHgeaZPmlOtx5S34kAziGS7bDnFgW2C65yGUeqNCU.1FFT/oRu','admin','ak_2128bd0d01014cd4','2023-06-19 10:23:00',NULL);

