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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$BC/1y6oAzh0skw3blDFAdeE7WXgLpmy2TdaW/xQIg2c8ncWsDHKWG','admin','ak_7b94cc0b90e30854','2023-11-27 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$KiGbnXht9yw/4McWMpe4s0JQnraOghv.7lc1nxHVprXTjHG4pb2BC','user','ak_cc773eca237dd920','2023-07-26 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$wkf8H3MA7VglmOTCCoepji2eBCCGHLvqAOFf2zAe/tQALWNNEljUV','user','ak_173fd4a7cd47b5a7','2023-04-18 10:07: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=28780;

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


