-- Host: db-master-1.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=2717;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$Lb5m3Z7hSXUNiuAdPrdyJg9HnMqxgjgclsP0bwnw9WXxVcatMAZhE','user','ak_bc2a1ef037c22d14','2023-05-26 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$85OF8cAgweSq8HykkJ22.Ya6l5X3KTHF0FX2j56xwl3n2GKR71e72','user','ak_348df102fc19c001','2023-08-19 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$eUbOcCtkbDvTEh5goIxIfTMFnDJrPVimRFFZgUKeVnPbp0oWvfsMK','user','ak_f319dae07c839088','2023-05-19 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$ar4x2w/ymvv.hlpX0Dult0piC1204dfWcLgdKWrB6HKgQaeFEobas','admin','ak_bfdce3ec470ffead','2023-09-19 10:10: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=5030;

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


