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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$Dn9ageNQExCjxMNn8OrcwldmHWBP0zh3zMRrBuA50LRIxTT.217hE','user','ak_8f50dac8240831bd','2023-04-16 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$30AugGC3odCez/9MQ6WIFLOAK9mQhgjRvm9IhDFG.sniH56tdRgxW','user','ak_63e9555e7cdca409','2023-05-02 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$iLhy49Q1YkiBxS9eNswt0tcTGYda1sX0clGUfZwZLdteq9pTz.qfC','user','ak_2758e16497845b36','2023-04-27 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$icqVmCsOqtZ9tbhti85qU5l3lnKBvg4SmoF1XAhpFMoktzchujl1O','user','ak_a1603dba95f5262a','2023-03-14 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=2635;

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


