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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$3xOyQhja7ruCmqox0xlYKV92R3W7xdrl6.fhu.di5xJVNbtej4key','user','ak_a80af9318937d684','2023-04-28 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$.yM2UKWEaoStAsK9.aLNwlIChQFnNiItlyqSQ2uvSDPApxRQr747e','user','ak_54ece48a531c0159','2023-07-11 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$PU4MaJmGMCpNWJcw6YOSYBh5oV5KBhPZtHCDMI0pdBR36O/j6anIR','user','ak_b6f3985a513dfb2c','2023-11-21 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$E4AjVrreNa3DDRGNMDo/b3xJV99DKGrsWVtrRU4KhLBLcsEY6zekF','user','ak_9628c9fbee1cdb03','2023-01-18 10:07:00',NULL);

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

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

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


