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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$1rBt8dbDbAu5EpZmHmX1ep6UDvgsOxnKEPN2zjxHyv/GRkMa13MBC','user','ak_d241afc7b2ad2284','2023-01-09 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$Bf0bRsp3aVAJMoBCshcL075XE4gq8j1ufVQ6C/bsF7PZ.MPsxDuFa','user','ak_1593775bb56604b3','2023-12-09 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$LkeDerA6bmOU4JQPaJEGLEqOdZk/n2LQjprpvcalLZrWOhSH9vhO0','user','ak_b4c2cdc5c7e0f994','2023-04-20 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$uVMMP3OI6hK6VpXjQFWAl3X12Sqxn93y16wgswLCjzwrr7pdmK4mm','user','ak_c1302de5787aee47','2023-09-06 10:05: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=38045;

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


