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


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$jd77U5vZodXhpW/iOH5PJUiL85g0NAX0FBK7NNyTI4h73kDS0qJMg','admin','ak_7caf5a87492203de','2023-02-21 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$FqF0.NG.Ok3yFwrSv5Hpmk9YrfgDrr/Bwla7GUFgXDKyd5Ys8At.m','user','ak_df1ee7e83bebb596','2023-12-12 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$0a/xRgxem9O/g7xfzUWu7p6myoPvjkgtEP6OcQfYopoO9bPcg5Shc','admin','ak_c513807e976bdc1a','2023-12-13 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$GSqIH4GD6wzJHV5dAhn0JRH3UWbo8WeCjuO88mqyTuyharF.i4HnH','user','ak_8a1a294af985abb5','2023-02-04 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$yUUPO/8kPFEvo46VTrCa9uhdx5lzpEQjxNxyj9CRutV3c6LukgF4s','admin','ak_d6ffe204968978ef','2023-12-10 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$0m0vqmDEa88.FziueggBsUAg446cJSYJARBI48TaQFbn2MSaoT.M2','user','ak_53e1b5300baad99b','2023-04-06 10:08:00',NULL);

