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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Kr6lZrI1T.49Vmb0/qG15AnVa/XB0uQkXnQ3SDSXWpNkRn7RlCMbu','user','ak_4e63f79061f435be','2023-07-14 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$7Te8TggrkQGGDjZWwfvQMUew.rYtR/juy0BCOwHvU.gjKDaKI3bcy','admin','ak_89d1124ab0c1748d','2023-04-18 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$D83F2MNNzOuiPequwTtVMKAuOaY4eiP.Zj1VKRhGFTdstiJrBmRsZ','admin','ak_d23bff1668a27fd4','2023-11-13 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$nnCg8kRrP5ZrZrFnxOIYUm67zvY0.VTifQom23Hf5CEiFiXUaxJTR','user','ak_d530676d32230491','2023-07-02 10:23:00',NULL);

