-- Host: db-master-3.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=3906;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$0rxOTdkC/M2on9aS15ZwhNCNOH1GPm7KpcDAXjJHQa9rCP1FHwPUL','admin','ak_4db2bf64cf4872f9','2023-06-24 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$mEu9dIgmc22BHUFcc8NJhBSYrDn4U8ckKwSVnq7QMuGYr/O0NsMZf','user','ak_f3e490d56a98d644','2023-09-12 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$dDdoLDXjDUWKhTDj2ZEQZGeI2hvrz41OlNCM2O04oE0HEslg8V5Rs','admin','ak_b677adee999b12b3','2023-11-14 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$uH1HUGikUzRG9G/3y3GYPfVQcMe9.ahCWuk5OHu8vqTHxqosDHnjJ','admin','ak_bd77674147ac6166','2023-05-19 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$2OFstQTLnFPBuZmTaX28m/iFtCl1q6az7CZ6Jz5tiIgrIFXvEv4Kx','user','ak_fb5c23650f7c0e80','2023-04-21 10:12:00',NULL);

