-- Host: db-master-8.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=17155;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$dIVf9dMVnZSqH3By5WEt79P3yQlqdCgn.ag7C5in7Pj8KuH3T72d8','admin','ak_2d8a25b70432d497','2023-09-13 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$ac0hV1eSBk0kN/wjS6duhJZqP0dKlRkkF/6xULy65.9vzeToqOYdi','user','ak_e85e1ebfe1574331','2023-06-28 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$r.5F93OotHrN0eqY8mPVxYJk.4LWnE8EYY7FD02848O8O1x9khAUK','user','ak_9ca060ceb5169ef6','2023-01-18 10:16:00',NULL);

