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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$ldGAqeedTelSx9Y1UcQHOdhNwxbQ7cdFIo0gZLWNamZqP59P9Aygz','user','ak_a0c3a4fdee61677b','2023-04-26 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$TSVS723UnZa1VwnvV2aYkoDU9BDWIbdo1Ow8V8UjjbhWyh1CqGOVW','admin','ak_337f98bffff2ece1','2023-06-19 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$IjL7tmPj9FrhXvEQeU8kAv4coQ8LJIsc7LCHSJ16C7zUi78SUvdmr','user','ak_7d35a3236d10e468','2023-05-17 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$X9JWrARgyPaBqMjZcTVE3QN6XBkEE8EGMZX8qb8zjByPAMm2GicVa','user','ak_948aae9223dd5770','2023-07-06 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$ikhzlsOU9rKKncV932aukmmIsC7N4htZdQtZ0KEx3Hs6nTxX9Tn.Q','admin','ak_0f5473c7a20adff5','2023-11-25 10:18:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=25155;

--
-- Dumping data for table `audit_log`
--


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

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


