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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$CfI//45JLAnTNn.bf3mAJ6s38rYB1Fp1Kr4gboyJIX2yRAZpAFEqI','user','ak_fcffd3aa78c2d840','2023-11-22 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$vwOXkMDaStyAvQ9gsaB4Bra5PL0vAftILC1ZXDa8g5f4NfiOhL1xB','user','ak_7140855bc3d9adc8','2023-11-28 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$vo0QHqCUC7IMYtpP9k39p9OShwyWVlpRSMbaKd/Uwz4XB6LrK/ErP','admin','ak_372f2f6e5683bce5','2023-03-06 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$vo91Rd1etJhnMrzC3cdvi6T87/t7l69AvMXAHWN9v5/rq1d.7yP2.','admin','ak_61aac0cb8fb72d13','2023-12-23 10:07:00',NULL);

