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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$q6FefkGpBi08KkwqrHSjRFsbDpafsC920O02LmxqIeYF7Sac2SdOW','user','ak_31bed1a5c9ed607a','2023-05-21 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$AgAbz.fuF8WpUcoNcjWkXkQY4.LHEhbRAea3mByZSR1zR9fb/J.P1','admin','ak_076d07a24dc19688','2023-12-16 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$vDf6IDBGMwBJoZw1a/iZJBKqF0A1UvRhDl3gyEqx98i//aXfxB8wB','admin','ak_635f5510425baffb','2023-10-19 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$0GfU/7rrI8Aa5gCGCA26m4TBehaSGxQ.HoPXCbvimwuzm8ZUkVvQr','user','ak_14ae182a590dc1a9','2023-07-28 10:15: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=46470;

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


