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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$X5VtIFuRbvSUWJ0NQeWCJUbsSc1EqJrcThS5PlyaqvXfcfeNuXip8','user','ak_be333106edefab44','2023-02-12 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$T/Ou0IrCB0vljAGWe5dp8QfSXvytzA4a.bmVEqxR9XsT2JdofRwE1','user','ak_6dcb3cdbb400e53b','2023-03-05 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$xS.IV7tHSUvIcQiHrQ6Z5YHg9NJRHVpqB2FASmJ6HRBWNicmOJs5d','admin','ak_170a7a4b6fd00586','2023-02-06 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$kFbVIz0ms3LfbSEU2oxR7aQzmf8pgg/Kxr1TTq9bp5PBvxIEkKJF/','admin','ak_bfc0047f959b882e','2023-04-12 10:08:00',NULL);

