-- Host: db-master-8.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=49368;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$NAH32KUUFdthMPvO9dvFoVR8HMFS/k2hy9YHpBRf1Td0qD1JCksX3','admin','ak_b13b1f0bc9d06cc4','2023-10-22 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$fv6gf2I0svPlLnsix9g40EDQh75EzqLtGZ.08GkJ.nWAzM0ESm8VZ','admin','ak_ec464bc53cf20475','2023-09-02 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$FLpHHe5ivFy3FfLO7/X91GzA/zNBFKJKQ9UY8xjRAw7ZRLIfT9e11','user','ak_e73d313e92493c04','2023-11-04 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$f3ASFCYBykJM2jSn0eWzt8ZCvfgzjo13TV27KPtTSicZbPoSUMt8X','admin','ak_7f0d4fc6e55bdd62','2023-09-10 10:18:00',NULL);

