-- Host: db-master-2.internal    Database: webapp_db


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

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=46549;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$JbwTvNdxYbnRsVLQBCjN5ZD.qS85JHeGHZKZLdatBGuHTXzQsiGGl','user','ak_0fc8155c89e385e9','2023-05-17 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$VC6uoNIphLh0gMRAqvHBZzr7lZcK1GTMIh65WTVrdLQCYs00mQzCl','user','ak_fc4f0ac2aebf335e','2023-08-09 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$8sB6V4IU/p0j8ZgmtWr4HbZRI.SHKQ.t1NDvnH1WVkkEHrwmvHzYn','user','ak_b6dbeb5c8fb05522','2023-10-13 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$G3Er1FNWXaeP..dUQtBuR4IMaAopSPAZA1INL3k4TgflH/0DIiY2I','admin','ak_dd8db9d7c4296e79','2023-04-04 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$gxB3mJR2VKyXx7/v/gWvEcdewmB0R.soUFMPSaVK1LYddA8AloG6m','admin','ak_983a7e4b51dfee51','2023-10-20 10:23:00',NULL);

