-- Host: db-master-3.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$4/PfxqOQ/aEyYyWwHBQMkBiTTCn.h49DpOOp9PLsgzz29etD5gn1D','user','ak_a8da55494495976b','2023-12-02 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$AXeBDTfhgNM3t6xkKjAdOy4HyUJZobp5HW0Bu0PcEgksZ1g55348e','user','ak_f8d0dcb2ae187634','2023-02-12 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$uL89SOXGxUYLvZVJoKZ.Lce.O9R0XiygbABjXP6Qh4JtPo7xd9aGS','user','ak_277b2d4e7d0403c3','2023-06-02 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$ISZ711MkryoTjQDs3GVoOsFu8ndmM4QmjfHX/DnfWumF78uM2Odf3','user','ak_9d93a136ff4b059b','2023-03-02 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$tMZJ5dutOPw11lYX/KdxVWF7l7I1By.mg0Yytru0HXXCnNpT8dxl2','user','ak_366b3e5ff9e8725f','2023-04-11 10:06: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=34500;

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


