-- Host: db-master-5.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=16724;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$zt4tYdVUqYch2/ye2IZiKghQhQiJKGUlWdg3FSWxJl5Icvli5TcgL','user','ak_e54cfdb3209b9437','2023-04-10 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$cd1uX04jPPWjrxczriVpYdkA7CfWg2PTsd3T5uLo7e5CKzhCuTTyL','user','ak_800fb159d956c777','2023-10-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$YtvC.CVR.Pd9wC7lYg4Scy1G6cwaJxNDOUENHxdB5g71ISInBynrc','user','ak_63a1916212fbcce0','2023-10-05 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$KbivQu9mtUcU1XGjqMWpMhZzEyQZkLT8va7tcMlgLK7iYixCX0ssz','user','ak_75a017846197f783','2023-01-01 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$tFy/ZaJsVkcWoV0QUiYz9.mW4//pGUHpv8ZY/MjPwlRR0cLzqFlOl','user','ak_3a6e215a78aef969','2023-10-26 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$/kPvNSbUYr4qJKBhKHuHxTKAmZv8V5AHECGho1.25rmlcTPG95F7o','admin','ak_40288aad178de4fe','2023-11-02 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$d6gCbXY67FuGNSvA4MC8tO1mYurndrOatOIwKHnR/TWoNWTd0y.RB','user','ak_100756ecf97b67eb','2023-02-20 10:06:00',NULL);

