-- Host: db-master-0.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$ESOEOpcfTCWTUz2/HzcqQUFfH1zW.JP.ill5DeWi2mHe5JQFHNPFk','user','ak_548ebf1a819f2c09','2023-09-22 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$9G24Q84g/j65JVjhQdvPgsnTcWydlcoOpkEFpLLjttXgDkfj71yXi','user','ak_634c8a2606219cbd','2023-01-14 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$60/vmWVX/fqxqPiSfaG9iMShQRfvJzjPUm/IAJPN.eYtKbWHdyBt/','user','ak_36c445a7bcb10652','2023-09-08 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$H1iJw5dCNmXOuLt8A29e28WKeJAxHL/TWGEs3u57gvOAzJbUbPOlo','user','ak_465666ffba87b59e','2023-03-08 10:13:00',NULL);

