-- Host: db-master-8.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$QEx6rLE4ATB6exmVKAlXIegW3ogu.q60l5UqmtTmIeQoES2l2x3l2','user','ak_3041e0f487fa0b03','2023-09-24 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Y0ssMzEKfD0yehz7Hynph1ig7e4LlShniGnJ7ZWg7OVhiPvpdN3bL','user','ak_cf8269d900213ebb','2023-10-17 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$UkCsAoYZdKn61A1ORRtgTdoQ9BLxd33/lJIqYehRiUn/XoTFz7gug','admin','ak_6b75fb8e87f8082a','2023-10-22 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$Wfaap9x.GbUALzwtYXs1yIxuD.oIlTlCkGha.IwQSQPVFeFdZ0gQe','admin','ak_2712003f32ad4a42','2023-06-16 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$k5C1nYTHGa8W8Jlk8QYMlg5vxX0pviNQdQTnsfVu6YQQfseZ3/Mso','user','ak_e6c396ed44aa9e1c','2023-02-05 10:21: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=11874;

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


