-- Host: db-master-1.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=28847;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$vt29SLgSvuVIFGruK8odZ.UEZCL6SPGnURMRja9LRAX5N1yxTi1Ii','user','ak_7d2a2a622e309e83','2023-09-03 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$BaYi0F/rQtPnBZIGMyQ46HFza5N6SKFdY7z56nklvNNCH.Ucz0C5C','admin','ak_ace1a7645d4a414d','2023-09-08 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$8.sXQEmGE8p6C2u3jKJwGV2JGxMABJjIcNOXpsezzDnpil8Q5YQVW','user','ak_90e5a8429131d26f','2023-03-09 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$0ot6lhgJt8x5CEJGRd2peVRIwgxvDEZSVwytwD6JbLeeN1tjWpR90','user','ak_3a3369254b997d82','2023-07-27 10:18: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=12609;

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


