-- Host: db-master-6.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$FnvkPU2CGcOb.2qP40XyDvC75h2G6guwZ6lTKPFgcnNz.pqDgcUIv','user','ak_9e5f78c86ba8ec05','2023-11-03 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$KoUYeK5dP9ygGTGIAuW8dPrtcFDUmkp6HzIkbf5H4dwZUNDmg5nXz','user','ak_37549a4dd4cca07d','2023-08-10 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$JQgiPauRoxUuajymbDIRxNMjDhzabgKrLsfx21AcpS4zGCt9pb33X','user','ak_7f3a888b1732dfa8','2023-02-19 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$B98GKaoOKiuQKKEGGSquUSik1GjXYcVjtqVqagOv4uOx3ec/iW7.V','admin','ak_4771af0e1ef357b8','2023-05-28 10:17:00',NULL);

