-- Host: db-master-6.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=43131;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$OwxeV3SzVIg6UkrBnBkv5c.3sIJu0v4n5fVQhTpD/3EE..ZPBXG1n','user','ak_f09b670258e287dc','2023-04-23 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$XiDGBRlhJ.6kNvmFvd86xI8eY8kjjDw2zkOCPRHLMUccf.bVr4Wyz','user','ak_946787343c938827','2023-09-08 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$X6lIeSY8ReIA4xpT5LmLc96b9liHqarMzEroaljSfHTAOdxZRP.kN','user','ak_d3a2685f4b550e0d','2023-05-16 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$2nlLFSoDBNcaGzWeRRl9PeDdgolUs3sPqaJ8XF.KX0uLX9fw8A0ZY','user','ak_7a0a28e83b64ccf6','2023-07-02 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$AALy3IrePr9OJT.jbaRF0J8PTsh02Uq2YMVHKMKtSg1uyGF1SaxMK','user','ak_1197326f58a3c8e5','2023-06-27 10:02: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=2981;

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


