-- Host: db-master-5.internal    Database: webapp_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=4414;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$3s57utBudCCfofAYYzSQE4rueqNTxGvNvxFMybA9DWX0Up42LBmrp','user','ak_148297fcaab76441','2023-09-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$2mwmS//oSe/mnMjZihXACl5tAz2uRSJMSrvh3HhsKkJZGJv684qLF','admin','ak_5e7a89a01333dbd9','2023-08-15 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$3qJzndILSnnLAp2arnYwW0Qp3SKaRzWeHemP8uJs5VX9tHxLLZUcv','user','ak_f84d2ae1ff64f01d','2023-03-08 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$RhqgEmIW/ovCjaytB9VmGYqlLN7224NkXG6OEjfntB4Hyf71FWrLW','user','ak_7c5994157bc376df','2023-12-02 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$z4Tj1sNPThHP9mUalcoU6zsu7aFdnS9QaH7f7JpuRcqz/JDn3wQ/3','admin','ak_fde532dd294e4519','2023-11-05 10:19:00',NULL);

