-- Host: db-master-3.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$rvOawKATSsEnlMadeGVBEwpw2bqXUE1GBM6zJkGmQ.50qeySxreck','user','ak_1b37c8870507c939','2023-09-14 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$32pnT9TsNY5eaDSTjFeqBmIqzZ2Xsb.Uf0e/fY12j8Fhf54YvKR8A','user','ak_7225e3db0198fa43','2023-10-13 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$B.0b.hBaiJyugIMdRP7YRKjVBc01NGikUJWeX4ENiT4NQM0NX.sfT','user','ak_c0bf46f63c8c04de','2023-10-10 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$h6FaAwzJlMrw.7tvpXAornflwnumsYCmN3PpjI4GaM1VhJP4aZ.LF','user','ak_de933b2536d2661c','2023-07-21 10:17:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


