-- Host: db-master-3.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=11457;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$3Cjh093gYrgMXy2DFUUg9o9JshWLYRJknL9uID/GeYq3Aw9RB.aGp','admin','ak_5469d4da5c7c53f1','2023-09-11 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$bRtnUmQqq7/y4oiNqCZX7XjhmglkPW6BFOIH8ehwYd0Jajeq55MMg','user','ak_e895c8157a1b3d59','2023-10-09 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$8.4uYTseu8VTRZACaQ3t6U.1zF9ra6kBzJ4yiTCtHM1y4vXBC1rA3','user','ak_6fd8e2f2e231d9e0','2023-10-20 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$GpS/QHetGADTNGevJeaUNVtrpnsWvkuIh/Cc0QbEc7GucocY9Kukx','admin','ak_929f1f784e9dd3d9','2023-01-24 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$tmpAHtMluytQ5lLourjc63NjySVgpJTNdGsD3rpeCVdBNzLfn1SA6','user','ak_bb46a9f387f87c56','2023-04-03 10:14: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=30161;

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


