-- Host: db-master-6.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=25618;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$d/9krd2EUucc6UVLmHdJj1hc2TSIn2GpZTmkjHvCeAO155w9qpVXY','user','ak_0b5b1b765ed84d73','2023-12-24 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$hd4HZJBBe8rBgR3xMZEEcSrR/IthY5PXXT8xNDhfLHQnpuqMxKc0J','admin','ak_d3233ea8af08f945','2023-06-06 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$DuG/adqwHtg4IUIIK.cL6nftgHIPddqJIpQCiR0BVD.7hvUGpSrHb','admin','ak_6f14d6f5dc5d71d5','2023-11-05 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$z/.9v6VkSNM16n5cakM/5Ko0pEfEi27TAh80b2bZSHhmyZ/gyIOFu','admin','ak_892eecb835160bd1','2023-05-23 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$5/603V9cLIHp.O3pI/MaDa5gR3jcaMlk6Yuuc7Hp0PQtkZRNKcS71','user','ak_17b239532f6bf941','2023-02-16 10:05: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=7878;

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


