-- Host: db-master-3.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=13042;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$l2nKtgp.q93.CaDNqJ/XEWaurfSauPnaA7qAOFzWc0kQINPJMZ76C','user','ak_19b35adda682c901','2023-11-23 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$c98SZ5jDRieBFc7Ab0OxzU5yhAxdHeanoG7UBZsjmD5cztYZX.t1O','user','ak_46a08be3132f2a71','2023-01-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$3zd5GCxxwwgG2bWEEaHTqu1vC3zJbIbBTk9eutcuPSHOESTezOWJY','user','ak_aee6d090df3488ac','2023-08-11 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$swOZ15pkHUKHa/EQ0JjYfFCGB8wAU7ssDPht9AvzrfB1kLb89qxV/','user','ak_0910c52b299cc475','2023-10-01 10:04: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=9895;

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


