-- Host: db-master-8.internal    Database: webapp_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=31094;

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$LhnDODTPLJXXG4bnMm.i./Z2vL58fCRrQa1OlZBBYXMuxlIhXpEVS','user','ak_a0d8c7bfb781a8da','2023-10-14 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$S.mQ1ux2G.FERnjlFxU1dqOpA1Ii5V4ng10s0spKoDzOO5yKjvksI','user','ak_4057a80a611509ba','2023-09-10 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$tQILiUd//Z3BUAQr21mcEKiZqhHIDPPsQKKOmzmusbzCTTIiZEB7G','admin','ak_9115349a8c074ea1','2023-02-10 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$GwZs1O.wULyUqz1jOS/C00nQCAHRuKhARfOkIXV8PvyqVB2PVNnef','user','ak_5424fe9b6441efa8','2023-02-26 10:11:00',NULL);

