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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$wod5nm8.VOj4zanXjnbMLiSNS.0gwAOZzX.YG/0AIOTISne.nNKBN','user','ak_9858aaa995e46944','2023-06-26 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$1bTmnZnnm9pSoxIJGqrExzg4fHOpLkE7F5T1WXDXrmucsW6HM06md','user','ak_9d09e3f658b98ff9','2023-07-21 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$GLojdbEeq5dV1MVaAOYugVns1942Q2j5Ip6AKPBTHDJyO.5TQwCZI','user','ak_c32ece122c7da58d','2023-02-06 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$zZxETWQk.nvMBQoDHSh7kHN80Qh.HX0FfcvgEvu.RDw9iIFzuZQgj','user','ak_d95eb0ce58882661','2023-01-18 10:08:00',NULL);

