-- Host: db-master-3.internal    Database: webapp_db


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

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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$LkqDHnHCjNwEt6Hfqup6VUT0QFNl8FLzs2OnT02awpfVWYQJ/gsKq','user','ak_c4732b82bd1abf73','2023-03-07 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$QVbowH1HZDYQWvkcFJpWshLOoOpw8fEfVVys1ZWLs.bsRVunD3O8C','user','ak_9bc359c8e1de7548','2023-05-11 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$1qOMXLmSV0aOOAOmf3KjKbZdGFUwIj2ZlNGZwrKHIBmWf/hFyOeY9','admin','ak_97f59be52ef49c42','2023-12-10 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$aGvYkIhqW5LAWphORRmrT4zM0x9hybjr5pcpDEEPvFPMJ8rr/abHE','user','ak_db11371f24a64611','2023-09-18 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$YQ4Y72Nc2v1yrcvzxvXYfuE5Rd2RUodAJ5sMXgm230fdbRQz.AtCn','admin','ak_6d47811d205cd728','2023-01-18 10:23:00',NULL);

