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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$w8TQfFYO7zAyfu/1XIoVScLOgl8Ayqh/OWhd.uLLfS46wZIZIPf02','admin','ak_d050ee22afdcda58','2023-09-05 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$PncKepMG2Vd/rPSL9/XB71.3Wj1GJLCK1wMpiZ41FAtWy7gD5ramq','user','ak_6fb03e50f0a8baa9','2023-08-05 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$VRk8vwlG/FgoDqKujUic4uUEL8h2wkPReHAEo3lJELoO48yk7rIVA','admin','ak_cbd4def1af3fb4c3','2023-04-28 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$pFGKAzLAMsmGhDxBZxR3M5Qu3OCsXByBnQOALfq3xQHj3b0i825js','user','ak_7e49d1c6768721a2','2023-07-24 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$ya.cNcuTKNqaK5MITES6IpjX32vyjtPj5xlxUTMVyN55lZtlA7tyd','user','ak_b9058616ce200cfa','2023-03-14 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$fkdR8wuP91/7M1FMwqdqRek.mZvn36mNOYkJT9T2oZLNqJPyzo2Nf','admin','ak_53c0fdf5b90a83ab','2023-04-27 10:08:00',NULL);

