-- Host: db-master-9.internal    Database: production_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=48343;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$qkYCf/ohREqmZZTRRJ66xYzzIbsJC3JWKWHgVOwZCahOAMm0QvrRx','user','ak_47a359084a31ab06','2023-06-19 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$DetiLDhRYVto3jQFu0i/YhZo.f4nUBvgUOT4pzH4Z2vOqhDmjQIEe','user','ak_529bccfae17f580a','2023-10-18 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$6HkrmrUDf72geksU3JDplM9hsWBtHbgBvegMV3fR1abB8Ez2dOSaJ','user','ak_3ec77d3240203e0f','2023-08-22 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$NSINl6BwbDDOhgp0xWgmqhq.fo5kL9TqZLVY5mK9xgYMcpERS2e5k','admin','ak_e8a9d86537b4acb5','2023-12-08 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$TOWzo55sK6TDWLhhrt9.2vSqwp8f48iY33XMz2OLuG6GMVUS3nuH9','user','ak_cce686abf0eea92d','2023-06-25 10:22: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=36593;

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


