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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$h4CJT9epjXxTeyhGMBifIzioAhw3WIfdzN8CNCan86bvw60qJ53ee','user','ak_433fc8260114d757','2023-11-07 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$OBfuNfAofRvczOvfAwvMHPfBEuSOAZ8h.M5umjZV4ycnwaSV6jSOk','admin','ak_4dc7f2065a4a6965','2023-09-21 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$XWOr5j6eRn/7P0Gzv.eX/VbHPs1jEiMvG4ZnkVUTGhVdt/fx3WSEm','admin','ak_c87d204f84f560cf','2023-08-01 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$5jLNlhij9WjDyzeEpwZwHG/xst3zTQXcvLhrEv4MOLW0qpAkB4hhe','user','ak_3f5553ad9b01000d','2023-05-26 10:09: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=13824;

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

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


