-- Host: db-master-9.internal    Database: analytics


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=33110;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$zs0ek4WqZ1GLkZ4v2rrjOndPe.x/dQT6U0wac0oSEKSjF1fH6vtUZ','user','ak_e95dd4251c3138f8','2023-02-07 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$vl5lWVRIwr8pWN9dPyTz.y0Odcs8SK07Et42uKJw6TBPs7O1Co3W7','user','ak_981f303b583865e8','2023-01-03 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$3ywrwioKVmdhHum58yoa7HXdhDpA.dOulgZfpAU9JgYFl8c0gdwQa','user','ak_96c65ac71e01665a','2023-07-20 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$YXuJSLdpRmViUV7Lh/tQEOWpxQyhKdhvGdImJ/8EfJnojdCizcXty','user','ak_827d98c39fbafc98','2023-09-28 10:06:00',NULL);

