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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$gPMImJVXlL9j8yHfRde6jcCTyMneLpRXvL3w/ILo7G86YyJB45Y2x','user','ak_47cd005a06e1036a','2023-08-01 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$WRYeAVGQx4CXHtKm2h.hF5QZYRM30cHQeaiv5GZViboPA5cDpaoXD','admin','ak_7ec4e16d1b7d93aa','2023-07-07 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$S9wVkb86rgBHtEWnq0mgRMHkjEYlrEtGUmn4PXK3l0YUDsTq.Vg/m','user','ak_e3c088d34eb229be','2023-09-06 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Fyec8WalV1jbbVNYjAPuRe3t5AT1iUoBVL2eyyT3x4hw7byHJYpvR','admin','ak_4039bd9e9c7c0165','2023-10-27 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$jOIVX49w.EN5QsL.hALXtXOkel/l0mChP.rwaLiTA56W8l4S083JX','user','ak_cfdd5b259ca6b0a1','2023-06-09 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$BX6wbzKPxVqYoPo.A7cBdbvhG8LAWcr4IO3vXbfHPqx1P0Xi9WpeO','user','ak_993a833882a3dafa','2023-02-04 10:11:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@company.com','$2b$12$0x3nDvbqTnzKmuBoXWat0EqbNseQLpbCagZVv451QbCNiWt0oje1S','admin','ak_6c5377e71e9f4fd2','2023-01-09 10:00:00',NULL);

