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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$vOAs7G/joWDPsPqEyoeAERhD6sJw/pzBkinS7dRIfKTDMkktMn1Cu','admin','ak_a6d2627d49e6fa18','2023-06-11 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$KG6JIXIsWW/TCAozOPNyGL3dUKktgckjho1N3eaXlXxJQXDzqZpmJ','user','ak_2dc38fcd15a3bd08','2023-05-01 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$2rxMcY/2g1WU8DOXytKeZ8XfaC9QXr9xC9FHPWN6JPFV5btsG2u1W','user','ak_78d6047133f5cde1','2023-05-03 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$418PYhPgdL2KDFRKjF9WsgYjGbCttwjhVhUYt4UfLXnm4Asxsiam2','admin','ak_91144c039af6b9b2','2023-07-09 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$IbxNS3jYgI.VGCvPzLxfy6nfRktYjmpqLEhL7Nsm1uP0Jq/xoVwWU','user','ak_786df1827daad222','2023-05-26 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$e0EXwxTtzJ43ezGpq4dy4SLvrDM/RmzGxnlfskxqfqUGtgxHc8w/V','user','ak_9ea875a24de864e1','2023-02-14 10:10: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=21243;

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


