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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$Cs9qScuj1eDTu1rKHvwfWf8nLUJjw3HN4Pje7KK6t1xcXNCU8L2G4','admin','ak_7dbbed96abb73e74','2023-01-23 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$/jfY10ifg86gOxvg8csdpEgU/vkIvu0BCG2egHQVEEKj2mdxHU1SD','user','ak_246ae3431d8640ae','2023-03-02 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$2ovTwBLSKZMFMWYtOpyGCkGYM/he3MamjW.gMC4/pmKehMSDxCCz.','user','ak_e0105906bc3b5426','2023-02-18 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$PVloEgpJ7NzQxH4Tnw3PTGQIewwIE59u5P6UtlAtOUY.BQGlWWBYR','user','ak_d8dfb9d3a91d496a','2023-01-17 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$2x2d32Au19WTy3mKOpBMlbGSIxoHpiUYNdeltiMqubmjodclVqA20','user','ak_75754f6f9eb66398','2023-06-16 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=27857;

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


