-- Host: db-master-5.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=20364;

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Hr7LlC1ZITw42M9op1I18zWRTxMOAURJC/GRBN.XV6L.v./yyeb5o','admin','ak_c7ff3e9666195594','2023-01-28 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$DAMfJUGqzFVxSdbyS88a0.gfdd69pLJXnZW9u9LpeMnzDlQhr9Rq/','admin','ak_2d7936f99bf39a6d','2023-09-02 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$u6gOgYLFDIgJxZnekJJhT0kjYdksIWQUcRjiZsQN2WbfPdVuRW7cH','user','ak_0e2521c4195c4742','2023-01-22 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$s0jC3.1ZoFngjCJ2paOqk6VkJUZK6BvMt.6ur5MNVq7uYpCr/h5kF','user','ak_c8ed7ec26e4f03fe','2023-12-09 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$suxYOHRMI5MfN/cO6hu6Cngw920KvNnom2tcjWPGSB5KSPnxvD1rn','admin','ak_3a65abc99d68e0b9','2023-02-02 10:18:00',NULL);

