-- Host: db-master-4.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=45767;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$lqLllwjhYJ.7Vow4cn7av43S87k1CmheH3Q2AGvgm4LNVUa1HfECh','user','ak_2ab0cb8d7813ec4f','2023-09-20 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$Yo2EIsTalVCAHNh0rDOVxLEZy97sSOKp9yQJxhlx.PfCP9qQ2ElRE','user','ak_b5bf95950a829eca','2023-02-16 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$cA9k9x3JvA4UYE8rSxBbSDSzvp4C2Z6KWqkk2w5D.UtEsNuF56l4b','admin','ak_a6581e4b06940aa9','2023-07-18 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$6pPl79oCuyxjwohs9hB1mkfJI4AlK2OPOP3Tsek04fjJNHHWTYUD3','admin','ak_21db549bb535e421','2023-03-12 10:05:00',NULL);

