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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$iEe2FM3teRg4UKiDPbTCD3dKfoOK5JL9bn4wQZO1OvcxVGeWHDrsk','admin','ak_c00920ae44ea419b','2023-05-16 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$u9hlFB/cUmVLpwQ2Sg955EtEmtIQGbImGB/ge2GG2KupLeAHJV8mc','user','ak_1e9e71ac8454f812','2023-04-16 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$W8e9ccQXcEoebd7/TeJvEjx6lIu.tzg.qflI8vTCRHUUrHDnTWhMd','user','ak_6e00186bfdb5a600','2023-07-27 10:04: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=38707;

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


