-- Host: db-master-6.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=31984;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$lUDFKIydvCgUJMLy05ijpLFECC86bPutMgLpGR5vSTyRwdrsMsGrc','admin','ak_b16092fe7ee14133','2023-12-28 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$L7bMgipZ5spgY4b2LXC.qgGMsF5qcbCKPth8e9ztmR0LtpWLYTFTc','user','ak_1752d4f0c529fd44','2023-03-16 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$2kojsLBJFTF0.wIA15xJ4/HHsaS9Q2UOKjH9boHvx9Uat94FjROt6','admin','ak_cd16fb5b6ec110fc','2023-11-15 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$BApo2sqwtMvHn3UrS3C2DsXGi53xQ05nsEgi/H4o5pOBVuHh/.zcd','user','ak_a211d981c956d233','2023-02-14 10:03: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=16182;

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


