-- Host: db-master-2.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=35487;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$4n6d3ZWPuEM8bx7WjMg/RevU0lZ3326YrYc2glkEDE2wBe5/Xyt5d','user','ak_e7b84cdbf321ce37','2023-01-20 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$Yfy3AKVxqdJOO07atufqB8Q9eQs9N455ozK4/iliqmWlihcThUpGP','user','ak_7d6c21361a9cde34','2023-01-10 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$N4HmGIPbqqr5CZxDf3gTyQH6l.OKA2m43dm/c9WsJHDJobUNh3FZs','user','ak_f59e272372d859d3','2023-06-07 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$Z9ArrS1E0RMy.7yfTz.J69K5ecWCe3JYoJLJMz721qCrHnF7zdhH/','user','ak_fbac805aad8b8e48','2023-12-06 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$Tkn/EDpKsZ0ula8sTSyI2U19scTI5ZNdftksZPEWYwGXGq6B7cb0i','user','ak_f93fb21cc3534e70','2023-04-04 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$gRtb1zP..9HpO8j.E0uhvdwIvYLzpPGmaGWvdKL6nbBLL1XvhssLS','user','ak_ce3e076b166874e6','2023-08-18 10:06:00',NULL);

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

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


