-- Host: db-master-2.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=34332;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$NbxNxezUWLKHiKPUOU/xFoyhE.gDO77T6bGUC6mzfsNLPyuyNLTF6','user','ak_490b2bab9eb4ecf0','2023-07-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$PraKp9NaqT7PYCqYx3DB3palpQ8kjaNyZIb1OPQYZ.tPRElnT//iN','admin','ak_e2033e6a5efa7c91','2023-11-05 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$qJdbDpmlBIi/Erc7M6zOGWmGf4K7WYi65ciA6GlJy2YyAgSGTxDjt','admin','ak_3d63b0b5c9e07aa4','2023-09-02 10:03:00',NULL);

