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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$sbF3GXNfhTrfzNeRyZlIsBKwSv9xvqBVKKdGiByGp80qdPsWDiWC/','user','ak_da50c6a99d981c09','2023-08-19 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$nNMZe2Orvezme8xx1ul6KzEU1jazTPeNyVUZGXLepFgG5WhTUvEFE','user','ak_674d7ac04d16c26f','2023-02-06 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$7Jr3YKotalU1wR4z5OPSPVa1PtFfqmRyrNqQlCkNMGCQDZiSOAkAz','user','ak_1eea586af71970d7','2023-10-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$2gwOXDf4Jl0IiH4r0gWRzLeSBSfiinJmr.1WvKRWFJQKgeDqyvgR3','user','ak_735f973a7e8557c2','2023-10-12 10:21:00',NULL);

