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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$3tQNE.rgjT8m7VjGRC4Hi/SZPO5VI7Pq8GWYrWkkkSymun/k9qUHh','admin','ak_e81c4ba72862f2f8','2023-01-16 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$C86uUzhc421S9DmJi.KUrL8TqpqjeMrA9fUem7ADNGEK1kYAtcyDo','user','ak_85a9514e7cb06ba2','2023-03-21 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$TJVn.3LJOOnpVSZSnUKhJh3FO2Plcxbfqww7cY7wPtYCHxFg7YV5j','user','ak_5caf9a4ea4e90dd9','2023-09-13 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$n6MkOp0gno8XWmv9E8VYFZ/89r.BAawrW1hu7dH2AjHqligL6ipNY','admin','ak_f0db3ef472a1c6de','2023-11-20 10:11:00',NULL);

