-- Host: db-master-4.internal    Database: analytics


--
-- 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=41154;

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


--
-- 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=13017;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$DAqkR6/U3Sf7KeW65U5gC5nCQLuGwR6UKM3AoUWYUkgGnQO2jypYS','admin','ak_fb4b0003fe0a643f','2023-07-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$TLLnDrmLz9/SUHXJlF5mqR9Tt5Dbytn.1PtCKk6VPC8oerJH66/Jc','admin','ak_2144bb45a8e0646b','2023-02-23 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$JpTu2WBLAptXy3PPQ9Jah1QS8AIkv.ypWKJXSGyHX0wPlV6JjNP3w','user','ak_949238c09d08f155','2023-11-21 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$J4IDirrxW15Nlr0bSBaoO8QokvOUsXLwCkUm1J2aN/Lc.38vHzF9B','admin','ak_2ae27c7089ebeb15','2023-02-14 10:07:00',NULL);

