-- Host: db-master-0.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=10447;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$JxGEw2nZJxzyqDWaz5hRM/7qWxzvUwQn2BED50gqyZ97xdoLCeisa','user','ak_d8ee999bd0e7ec95','2023-12-27 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$cnOi5lIzUA.6Gi/G4YgPLN50xgBQwIzJHuIGmQ9x8iDXkOlvICHuk','user','ak_ca2944466c544cb1','2023-06-12 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$ob6sYYj3b68EWqoIIHo2CmSiQof.M5vbl1nMzaGe7aTL66dOKklh4','admin','ak_9bc30e1cec468ea1','2023-05-05 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$KOjieF/92j.e6o/wboTil4MAacW.dIuamXvqAzz1pPv6llTQUldZD','user','ak_47253d5914daf77e','2023-03-02 10:16:00',NULL);

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

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


