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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$OPTaCGUBq54/qAAvkeV38Fco6O1ug4JHc.BoOtM.NGROMvq48R9P0','user','ak_cfd4094fb1ec1aeb','2023-03-12 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$A1sIABEe1DDPD5iQHR2c2GzhHZQSdcCFlOXTpJVrQgdZfGxDWZF5K','user','ak_80e169d8c7528f56','2023-12-11 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$jlhmzB7zZOQiYuSBVx8dgYdSQSrNCGLwR02WtetxQgJKkXJMQ7ARU','admin','ak_1f67be950e02daa2','2023-08-03 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$LXYtNemVWkYGhRl86NzMNnXFJ.wyu753hrWmauPTQeHaAZ8t0jnZr','user','ak_40130a41f026935f','2023-07-02 10:08: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=42588;

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


