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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$Ys.dQkVfD7GMQRCAn8g.vYFpeZaOLiWUrCfsTIH2jsZKI5tuJCmW8','user','ak_d13e961587b17bdd','2023-01-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$vp1uwDSRpSQNybgpp9fY3Iw13Au.F/CdXsHgRBSiQ9YrLIcd8I8RI','user','ak_5ca86257aaaf52b5','2023-11-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$md/8om8jpmYscLbqCwlieAp5rMxzDsVZGUGHcdbds9lTt0N/FVFLy','user','ak_cda417157383143f','2023-03-07 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$gerpbWCFAK3PAVQwtoftQ7faG6Mtv.Fmq/mOzbnR/XRqQbIJ5hPt.','admin','ak_d293776757819412','2023-03-24 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$kvwHl1YE3Ew5c3Y1HPtPu/ZY8..1DoHhPJpGe2vbfqqhxNn0/hZAp','user','ak_4fe498dcdb734eeb','2023-07-11 10:03:00',NULL);

