-- Host: db-master-7.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$cU9466cAymkyVO98MIWJynot8F/HtNMG1pWbF/szo1PR7hyC/BZtd','user','ak_b9bd09906fc0ec48','2023-06-18 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$x/eTVwTqO2PzymP07jsnEvS1n1SHgkppno0Fa.Ua5XjdHDe9NW3DN','admin','ak_8f28b1b0f00e0772','2023-08-06 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$1kAJZvoiZb0s.fX5zK68fF.3Zch4/KY37RHPDVFCb3NZgi26LvkUE','user','ak_7a1c68f3a60e908d','2023-12-23 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$.fZdqPHMKRMgH6hzIDinhKoGX7E7kt6CRhr7blTaTyyd9VeloXisK','admin','ak_1afd23d4d210439d','2023-10-19 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$5H2xPhrOXpxLvVoFV2OjsfPVsEAVJk8YnhNDvUhUN4HUuKLfGJnKG','user','ak_f52235585845e77b','2023-04-01 10:00:00',NULL);

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

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

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


