-- Host: db-master-9.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=41877;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$ELG6ZFOviKvTAUb3YrJ12UP/lnUgNGrrlBtz7iwwG5uR4dCuloYEU','user','ak_6edb4f61b6de6b42','2023-01-21 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$uYFvDhVuX/dzFTUu5idBDwiwLQGHSVu2k5T5wjz5wTpevN1uK2BBB','user','ak_55e0693d149bb4bc','2023-09-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$W2Dbneei7h7Xyo5PzAbJBOReTR0W1Wr0M9NyHKb.Wdk7sNgS3eL87','admin','ak_4954ceb58229dc37','2023-06-13 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$qUbR5ZgYEQBSxk2NdnQTZ.BdDFlFCyc9fCzkQErh2FGq0SfrUy3BL','user','ak_3c645a06287c1c17','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=31992;

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


