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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$yK6mnTEUIXP.YgheQZb8zugXbhjxJN4hYBG5sMTiFhLi77FmrUkD3','admin','ak_eac252abdc583750','2023-09-14 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$BV6HVRg9QHjMhgOz4E9yxtGyzcadLDt22P4nSvUd7WmSs36HzS6aM','admin','ak_f788ed925f3ed701','2023-06-13 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$AqDfmLtI1vP2yRzJgE6L0wEU.bW9fG8q7feQspNwMvy97/QRi20dM','user','ak_e3801f060f15a6e8','2023-02-03 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$TsYOPqNbb5JzPO8.wA6twuLM7.ojn3DG04upA2U4szjBA4g7.VP82','user','ak_bc63813c2966cc36','2023-07-11 10:23:00',NULL);

