-- Host: db-master-1.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=30132;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$s6MsTC1QcdkOvHU5a/kKnXJGHCm2MW6Oyfw6fS.arxqwBL.kOUc60','user','ak_1b28242dafa2221d','2023-10-26 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$V8swdfbKPzBWWhMeASs1oavAm/Jf.5dk9tt.3d3QlrQl5/cQfE.tU','user','ak_7aa39cb3fe7b709d','2023-04-10 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$ryjYxpjACiReDYqkzhkpX043ktOd/JklOibzSTeH7v8uBJwihoyj6','user','ak_13e869667cb864de','2023-11-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$7J/0pGlaid0dsozGVb/3zSEv93AtnELV4.JdyPKY1txr5IRNvCID6','admin','ak_5e4c5bf697199255','2023-12-20 10:12: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=41826;

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


