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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$YBB1x2aqunZ5m1CGP2tx77Qv6W06zz8f4K7udjQnWVoFH8yJ/5Dyy','user','ak_5f3d81e5c8fe9c28','2023-07-26 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$koc5Y3QKsmP3zLgJfRROE/4YTJcMjjRf2g9.Sadl.4dQQFaQkCDA1','user','ak_cd913fc06afbbf15','2023-05-26 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$LjltkRznJVkyIY8Eb6fzSVFKjCVXrS9O5gMICfc2SruZmV8x/a95f','user','ak_b49df09a07466bc4','2023-08-22 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$0V4AfykEvt.ZzBxUjs/efXSz6Y0ySdJSAoyjk5cDtnafTRSPIrHw4','admin','ak_91ec4359cb6bfacb','2023-02-23 10:09: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=45123;

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


