-- Host: db-master-5.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=12400;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$G/uq6m3cHZ1NEVt0nzC219rNHQnRjzkD4vEn4rVLz2q992PYhNr6s','admin','ak_f44b353279c52e4f','2023-08-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$6tO51B5DL8v26/6ycgLu0mhyIYmuS0Kv254sqKy6oRzRFDmlK8QCl','user','ak_4d4b207399ad6334','2023-03-15 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$mE.HFCVVPHTBzJ6NRadHmlo6AoAos/yFE9LKRQwD2AV4fQsNl6aUM','user','ak_c8d9504e29a9c9b2','2023-01-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$MQ8jl/iWTl2ahSZtozs9VVv4pfUMaRohiKbKz5fy/BgzRRaaKXW5h','admin','ak_33136de0472e3746','2023-12-10 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$LwVpKPYVBbexB4igyZCOgRzXosjAb6jOLIO8CeIq4oJP/xhww7qS9','user','ak_5bad216bbbdc3ece','2023-05-20 10:17:00',NULL);

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

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


