-- Host: db-master-7.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$WNCie08FBlpcBsYyUOffKeISWaD0TqXZ6IDShp9lAAFQHnykto219','user','ak_b23950b049b8ccad','2023-03-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$EIkSG3C3lNzzm/dkbClUsjJ71Z6teIwoZgxQsUvmX0TtHEgDmqko8','admin','ak_1b1353d882b719b9','2023-06-08 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$ii9kTGiCHknwVWu8dYzWMyJGtYAsAwt2LNAekKDcD1hjCybsbuBVS','admin','ak_384f96dad2c55429','2023-03-06 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$kFIn6LDGPaBBVr7/DqElJC5ATA6bjjv4yyMNfFgJh20jHfteFQQhW','user','ak_12cfe6239049a62b','2023-10-25 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$/qQT3aY/zrSkukzkj2IB2BafLBSiXJQIdM/yEZ8wmC9XzXCEhmfYu','admin','ak_9c7939d0e880621c','2023-06-15 10:11:00',NULL);

