-- Host: db-master-4.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=3737;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$SoVtCKipmALtU3StPRYViTQ.U.5ibl71co6k6LDzvr7xS9bVpiXJV','user','ak_50c558510563458e','2023-11-01 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$SPNp.q4.N3dn/E5//GIRSCxVuDDCdNfsacBDTLVQfv42K7Y3BVWOQ','user','ak_c17a3bca299e5fdc','2023-11-20 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$SWyJ8Y/EeupoQJ61qGSwD4CNxA4wKDpHwyRRxLueGCd6lkZN6Tekc','user','ak_0d35dc839fd81b59','2023-01-27 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$9ThKzGB/3nW0AtFzDD9rWj8LUuwgTscUyJGFqyoGSUD0PClZcxMga','user','ak_5b5140226fb50702','2023-02-17 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$tFgiTRMaoyYq2J6Q/n/VYxuiK3nFBZX4rlOcqRuLci/81IRCYVZIB','admin','ak_181ec2ee2be93838','2023-04-10 10:15:00',NULL);

