-- Host: db-master-8.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=4084;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Q0iqXH4K0gtYYS/m119HgunI1W8sQpJlnY3SfbvN0lcxpP6gms.uw','user','ak_889c1428670e5293','2023-09-21 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Wzkmhd2z0S8m9byrKwn0kLNnl8N3NnHgi7A5waH1GNvussDF7KTt.','user','ak_affca13faee587a3','2023-07-16 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$cBMhBeTorlsgJMBAQc5EN3i22i9v/qnnF1ymxDQen1htjqS2b6R4F','user','ak_401f64e02edd5381','2023-03-20 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$dfmTw.fkPHzJXMT17jLo.oxmHCHqkIUC3PB5qavsDBIWndM7AJoeg','user','ak_8d8214885becc25d','2023-06-02 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$YRYJIost3KOBVdvQBaKfHskA6mtjF8djhd.BIWjRnbLBwx7C5Lhls','user','ak_f67fb55f806c6942','2023-12-13 10:09: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=16246;

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


