-- Host: db-master-2.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$8gzOttqjSV38acfSDN7mI.cSRwZu.D6azXfFlG1qPyRtb50VQd0iv','user','ak_240d778b8ff04900','2023-11-12 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$7s81WtaIaSep3UNWeu3g8yc2S3QPTrt04k2zA.XcQbGf4Vljn62ZC','admin','ak_28650d3da8126c91','2023-07-05 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$dUqmdCo4zZlGGWWSXvKDkJWPMsAmY7RJWJNKoh.Gulj71rj4wf7R9','user','ak_71e43eeeda29bd49','2023-10-22 10:00:00',NULL);

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

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


