-- Host: db-master-8.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=27209;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$t01nAkNaJGSdgJqq9zrt3muSQHo9ada/dS.IA7QL2d1/owT/Axyor','admin','ak_982f2d73c97e524c','2023-11-14 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$yb8SitCUcu.mR5w1PpvVujw3osCSMziT49O7KO3lyLTEvwwD9QYOI','admin','ak_d219426dad86362d','2023-03-22 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$fni5tXIplVZpshYW7KZvK8C.jYAPFVS5NrYQ3Q.Le0Xrz90VpibGj','admin','ak_a2fb3f40585dd037','2023-02-06 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$yJL7GkQOtGvM.4SfJhy7ksYrIGU25DkRYLJyWfOkMNYnIJT9KsaHI','admin','ak_ab185cd830f7603a','2023-06-15 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$a3Jxxh58HZ4FFjwAZPIFcEDJ/Nlwx7bApycfVCcRy86BJgI/tkh5Y','user','ak_1f1c3be8db8fc4c4','2023-08-20 10:05: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=24172;

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


