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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$aEnqXQ.Wvx40pzbxCGpE8kKBmSToVLQa9JNMgd1AEBF.yu4Ypz2N7','user','ak_164fbb1993c4d503','2023-10-05 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$2WiYp86Q4OlF1aSiRdfwWNNBSkc62/UHe4p.mv0JRSvBcpGKED9Ss','user','ak_896df61e89192a76','2023-09-05 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$UjGzIWeMb9AneA4v7/IHOreUnwwMPQepxjvSqNiRqlQ5IROX/16KG','user','ak_a923b51c7d4c32d0','2023-01-06 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$P4kAIug/6DFOOLKQE9rw9lnnagRXtE.L2iNvP4z0zIAydXfpFR3LO','user','ak_aa0e01b880f985ee','2023-08-10 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$HVDjCKEfp3ZCWok5OiQND4f.7VtFS1aww71z5wOe6c7ZegbkgFpE9','user','ak_43017fef5919bdf0','2023-08-22 10:15: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=19433;

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


