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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$gcjtYI0ehuOnln6.CUtB6BWRm9T/8Zz6SwXdQZdY1vluTzR0ij5fh','admin','ak_0b0bf4508fbf39ca','2023-06-15 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$dNocv79/y.VXj5ILCT0TUME1ScC/AREwzchPfS4h6ZhVV9cVD1zZ/','admin','ak_430a1c5d34f7bd03','2023-07-14 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$vutBY.zoHlvWX1R1FZ2hf56wpALvEwWdEAvGDyQbqgbe6ygcYRIOX','user','ak_f985fd00690dadc0','2023-05-08 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$.vdvM6M4Y9Xo0U0WmAqfFzchPjfTHGsudWwi76okz19DdfFI3X4bh','user','ak_9d1b9c102b8251c5','2023-02-17 10:23: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=21143;

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


