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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$qxHnOknTpshTti0YPHfqET0GISAmeuLIVzbcMnXdEnMEa6pUgXoiI','user','ak_536ab29da076385e','2023-03-01 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$dRtf1bu3gdVzX1KCorVPz/4ctKK80HcuxeH5NwO.gI0b0x8wug.5q','user','ak_4c248460591cf38a','2023-10-27 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$Km8NDcbt0muvGbf5oqTBESbT0t6kqq/cKaboLTPWVv7gyfRGKjp/.','user','ak_b9dc2d078d12e5b5','2023-09-17 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$st4i7lsvdLkJoAnbjZW4xgV/7LVAWn2o2LQBjlBMW.H97vz.KZqIR','user','ak_3aec19e28c3212a9','2023-12-19 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$np8GRSrZer5eeIYlVbwYpI4k1va5jLq0s12T3tAjNJnR2ixUbYPsc','admin','ak_1c560ddf1c9dfbf2','2023-05-06 10:02: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=50463;

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


