-- Host: db-master-9.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=48327;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$pmyYmh7YOQrSx1qQvfjAcq3GbY59VzZ9tCPENVyH5.saEW6DT6Mpo','admin','ak_fae9b47078d53da2','2023-12-11 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$3NcyqHO4bMemipyls.ZxRzeebVTA4ZOpTfQ6h2HEPtps8R.1PHLD8','user','ak_5b48dfd5cf66f8e2','2023-12-11 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$E.3ASXvTp.AGtPm8k8640VETaBzHtDAcD66AZNwsIpEf4/sXfMDPA','user','ak_a15b840815c8dc1f','2023-11-23 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$7Ttal/vtInhJ04z.N81f8OceY7OOKzqM7J7hpVr6VT7djUS8jCD3.','admin','ak_29fb2533cd7fe629','2023-12-02 10:14:00',NULL);

