-- Host: db-master-6.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=11682;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$sLz8Mx5LYri/leqx32zB/2yhGEL.fBlyVEZJgDnFWz/EgYdKdvKYm','admin','ak_6c363f5933a0f098','2023-08-07 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$s3Yb3pdszEyN9TI8VXXeuB3xb43ZIM//QD002sptvfWV.8oJoHkpR','admin','ak_b0f7c4927fa2b100','2023-02-18 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$NEL/4aip1rzcyTKegbl6pmlywT/ucug7ejdQSvoioqs4KemHmyE.L','admin','ak_e28c5b11751172b0','2023-08-06 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$DnOaPXNl19Z0vEFM6GOQO4txO1HyDip1z4IbW8Aio6TKun7M9yeV9','user','ak_da20073d2e0f99ea','2023-11-04 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$.ArydrWwjkTojEVxrwLdspzs3dWOiGd1eSCOAgVzAjd3zJmCI1Ou9','admin','ak_403611dbdd62a723','2023-01-18 10:19: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=22439;

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


