-- Host: db-master-1.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=36540;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$p5HD4Yqpu.5g1EO.NP6JIBQhHFVYctRRzIg/ZSfzBrxVnvwiAKO/a','user','ak_4d2acf738794b00b','2023-09-21 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$iVLfDJnSbN20rdG1PU5MuT1/ArerWEWc89nTTRsI11jFmufyx1y9F','admin','ak_e4fc7790e85b302a','2023-07-21 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$FNUGz6DdIJ1m2jgGB4boqK4K3O0LtQOYYGUbw9RUR0FyJVkbqYWn6','user','ak_a2b47eba34dae022','2023-12-17 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$xVE2.WWqvoUjFKnwuI/H/vVWu0zdS/6TqUoiFesOh7HzodlHsyMm1','user','ak_4e6104359714917d','2023-01-21 10:16:00',NULL);

