-- Host: db-master-1.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=42013;

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$iwxc8RzwNr8pxDCQ/DtBTawB3GiaBuxLPFVuX4sSL6vF9owArUa/e','user','ak_12a4851ce33796a1','2023-06-14 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$9EtGr4tVSg.m.T1CXyfxOu60iupAFriDu98jBXD/v98mE26LgBL99','user','ak_66b72b85e20a2bbd','2023-09-03 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$aX6At.3jVi7vwkB6ENanJjFzt94q9enjTFfIDjUuaZ2eufbfI29eq','admin','ak_6ffbad85d935e532','2023-11-13 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$eQonesYNSOtYPmYf6XW56phVBaux8cjgeLToeOo3dW.vOQdXZCEJo','admin','ak_79b714e5575ea3d0','2023-10-19 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$ABRCuE9EdkSFr1otlBW3QZy5pE0DKH7x.QKvFYOL8kkDB/VPR3rEo','admin','ak_f3ecb9692ae77698','2023-07-27 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$/t8inLPTTQd.92SlowyJo9r4etwhTY0Z1APOWrgPdLkdXpO8tvs/6','admin','ak_37947dca3b4bd8dd','2023-05-18 10:14:00',NULL);

