-- Host: db-master-4.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=36162;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$/erntvlNOBzBdnX114cKhXrMEx8tZqmc2vrV4VzRlMzAsDt2cbsAs','user','ak_a5a1a41f27d666a4','2023-03-18 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$eVec3Zal6Y6rmcVfAbYx2rwzuFYfkyFBOKeTLPoP6LklBqFyHAsZJ','admin','ak_803c95cabe16dd3f','2023-11-27 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$bWRnx8aTMhLKgWxpoD9fYgaTARWlcwTis86Doj7TpvlsPfjUXTq9c','user','ak_eaf2c4e453e8b47e','2023-09-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$6hTrPBVV0i4pjUZ.ceKh4wEynV7htMzT7iP6ag3hR2t4VCS.k5OBf','admin','ak_25340b021a94f8b6','2023-02-03 10:22: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=38059;

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


