-- Host: db-master-2.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=22828;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$reDT3YP4YDPgZrvH/5KPIErQwVayzyP0t7xpJ3kwvc0wLWNeuMT4w','user','ak_1378dea41337d3b7','2023-02-03 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$HtlY/sLLng/ZWBS6kMMYb9ZJuREHNBD02DMfe8VpqhQuwBOsPVj.h','admin','ak_a5cf9108fc55489b','2023-06-11 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$M1j3NN3umtFUK1XlaUZQfBStwKieehFHpHkAASLgHeuIJsm.CEjjE','user','ak_77612bd6edc50091','2023-09-03 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$JO74WAZjWSy92qgYjey91zT8XVqoafvWPOiueFcSyje3TqOUbDRfA','user','ak_68b37f855936b4cb','2023-07-26 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$sjxyoDq4jq8I3W/M7OeBqyMt4Uzj4AxJrdy7M/xowyKFg2uV.2Zda','admin','ak_e6fbb4e46aaaf2b2','2023-10-20 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=19671;

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


