-- Host: db-master-0.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=6398;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$A1WktmyHyeSyWPAn5ca4iIGF88TOL8dVIqNbEuxJV9MKDINugCqV1','user','ak_f80ffc163fb4b985','2023-11-06 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$b89SDx51o4Gl/7.nEh9XGYpEAft67hiQyoafEzbXOaW0CTxNtLVJR','user','ak_d1aeb36a70e0ead3','2023-04-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$IHCKCb4clycC2ih3OdGjCq6d6ZGugrdOKuLMcC00xP5TvYK.J7/is','admin','ak_2482bc2fc27ae0f4','2023-12-08 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$EULC.CRsBkR7IAUWi7Fnv2zLaYLjVr29gpWasmea0OFzP8bm3pu5M','user','ak_00e5b9e2d3d3fb6b','2023-12-07 10:15: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=11445;

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


