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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$EGA162jpOSNox1NbkeSo4j3XKJiAgtOmue0m.NTX/1zmid7AVAgfO','admin','ak_f33a59bc7238c1d2','2023-12-01 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$9R.f3qMa400h7RS7ExX9BX3V/siW3ONNFtMWJAAgmxnerHntP9UUp','user','ak_c37e62da2714e1aa','2023-06-27 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$AMdJFnnsUzudkwbUsi8R4y3luRSTMj/cCexQtI5MtZG3AAa.e4EUL','admin','ak_2fa61d460f7b0ee4','2023-01-24 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$zxNgN26ZBweZgvrcLGyz.Vjx1Xt77nz0UgLFhNwYIRSKR4wrZbM3r','user','ak_99b1bf1d7f50d868','2023-02-14 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$NgWV.AZmczqD34fDA3N76wAmnzVtTT00fbe0lvNWOJ7Jor7Dj/nMf','admin','ak_c8f3d9195ea26335','2023-05-13 10:10: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=46554;

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


