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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Jr7zPn9MLAkOAoQzVSLUbrh34Yk1kAACuLKpiVaV9jU2CfPo2rshR','user','ak_c36604ad585849b0','2023-01-25 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$PPon8EUDGhAFf2Ke/RO9XTCQ4GQe2udRgMuGioptujk.BuZb5sMeZ','user','ak_f9f40d4581813a1f','2023-10-18 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$mkDuAcve2GdLxd30Xv4I8TP8I1U9JomAxN84dz8Uds.44yBGGdr1M','user','ak_31745a67a2ae89b7','2023-08-27 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$oRB97/I5uIVdBCDS61oD.Jq1cU3XVfYayhjhX6jct4Aib6kypwSq9','user','ak_f02d6d81f34dd082','2023-10-13 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$4uLtBcpKCm3.NOCYOHwWYsamozXxxOidcTxseiXIwA2QnSaI98Uj6','user','ak_d8947d4fb81d3bc6','2023-12-20 10:03:00',NULL);

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

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

--
-- Dumping data for table `products`
--


