-- Host: db-master-6.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$m0rOr2lfCwwuOecRfgIi1FO2VGti0dygMN5eBJsoysOQrIX25YF6Q','admin','ak_72b06f863c307a33','2023-09-14 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Iy4F9ADuL38wmJae0d0D9A5Zyg3S6fbG9c5vYXwZlaZhBYFYhJh0k','admin','ak_a53b911f617e4691','2023-03-23 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$hoNiMUQhEOaP.kBA9BYDD4aiBk/0.q8ZoZfm.Rl/aMCavurRYzF6J','user','ak_11d40a48ec4b227a','2023-12-16 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$5RdWogQjNuwm37T/wgN2QwGO05p2TZOgqBkQD863oAyMCcIvJ6Gji','user','ak_ede6c941e7f17c04','2023-07-13 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$oYVCGND4UEwESreQSehtcY8qjWn1Qt5uvFn9SoxYZ6YEoLZ2VfqA8','user','ak_5bc9ce242df5cd52','2023-04-12 10:07: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=24718;

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


