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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$ZP8ug7aWlIlfHYdONg.H8iWWXccMukbkHXlahjYbYpuDmnk9SwTEf','user','ak_f9c3796ef81ba3a7','2023-10-20 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$tTK.Kwob.mqOyshDXesXCwydlzo1D0mOVXgE46/AT3pZdtyOdTRII','user','ak_fd4176041b3cb8a9','2023-08-10 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$6Mdz3HUmAiSg8O1CNHuACsPKVE/wc92Tmg/2Z75CzR9wztItJaUZc','user','ak_d61312a5168340dd','2023-05-10 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$K2BntO29E00b8DkJbzUWPbwO3XsdgHN.O35FZf6pGWbxBjxwwtp3C','user','ak_046fe6ec4d23a917','2023-05-06 10:13:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=5686;

--
-- Dumping data for table `sessions`
--


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

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


