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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Wq1cwDzg2McHoToPuGqWYcSNZHQnQs8ukxgnMsNfLQBeEhFj3BBcI','user','ak_5b1c71f97ec45328','2023-12-03 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$avM/P/zWLv5qu8qIu64PhqJz6Sja9EoOih96zuKGlp0yBtOUXw22x','admin','ak_7e4075cb94b9195e','2023-02-22 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$UVXPn9gnep1wAWfNgUDu8mpqibelTgUI9zBPWrgpiRWYWaxWg4EK4','admin','ak_0d056922582de315','2023-09-10 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$3zXoP.RpycsAtddaNXTUk2S594HR1JuNRltpLWnWF8o5HGTQfXfnd','user','ak_c8748b8d56239c07','2023-08-14 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$8H9BNLTNpUEXzd3vYoA6ceYs7wXWAn436KK3ehDrgqKBi3OSsDEEm','admin','ak_b471243484b9a2d6','2023-11-04 10:03:00',NULL);

