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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$WBcDvGuzUSkBnsgG3QZCJvCjqMVjNqWRsfLtOUKYRtd3ZYNqU6//p','admin','ak_183142d5563c900f','2023-12-20 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$pO0JESEWS02YaBdYCuBmfZglwqrSKqvaOKE1OsazFvzm/o8VIFiRp','user','ak_5d236a75d625f324','2023-05-20 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$GtxXKeJApjl4W5DjA0.vHiOgCGs3qj3gOAf/LDlIRawu9Th7A2Ktm','user','ak_bac18e7ce60b2207','2023-09-09 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$T5ydEgUx4NJdAjiaIVCn3/0N6KQsWlLZF6J.tYh.cvIkQHDTGlwz8','user','ak_3ebf128d7be29739','2023-09-01 10:16: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=39079;

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


