-- Host: db-master-8.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=34736;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$qW6VWstnQefXtJdT3eVj7EDP7henS4ojES23gqZvHjPQFpKA/LNBs','user','ak_a8c65ce0ae239cee','2023-12-24 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$tJ.Ug7WwBmTSEVaoHlXPv2IhwE9UCH5OrExu.GGsXhlFDBfSMg9MH','user','ak_b6674805fb2d7d0b','2023-04-21 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$CZl6a6BWlvW.AubtAd7q7eL71w0LQAb3TmT0qUq8xhpnMd55qlA52','user','ak_0135bd5da686a8c2','2023-05-18 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$maCdopykS.c1A.vM4rx6RVOuzlzgdr.6/jmqRBqtyCLlwMNNZQ5Hx','user','ak_9579fa14d63af7fa','2023-11-14 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$M3gelK.yIRUJB1jeUcmAvjBSAu8.asPfUf1vZJcXsoB4zeW.Jd0hZ','user','ak_75b740c13f2e9283','2023-12-01 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=11130;

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


