-- Host: db-master-5.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=50936;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$zx0SBa9SWio/XKS.7O1PnXRsMXSS0BaBroglIMUVhn.brc9icEmjO','user','ak_736ac0b70eba95d8','2023-04-03 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$vdgaZcvkHDW.By8iaCZrOx5Ilbe5APTx/U0TJfEW8eE9d70IA2l8P','user','ak_8bea2c1282b5af4d','2023-10-24 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$a8tE84ZrsVpAv7AXN6pAPiQ2FwhWhy89AK77QkAwDE6rcd3EY25sC','user','ak_e305e7178916099e','2023-10-06 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$3VIyRK3RgW3rDHjqLAwXiruF4afPy7LT7rP.M3MGro57AhHi9Sa6G','admin','ak_f9638bd952a0cec8','2023-12-17 10:08: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=13588;

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


