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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Fyma4Qpsa9dB59dQEzxe1deK1TfqwyAWn63YTUZtmBDQuyAjvBckn','admin','ak_3e8aca7f7a9a1eb8','2023-11-05 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$PHV7AWAC0rczAFjxjQGCGPzKkTwwjP2lD5vK31wOxUPuDSO3zqZSG','admin','ak_1f3fd9ee60cb677e','2023-03-14 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$Mck0PkfZbyHa43w0vI/GUen8xjHbeUzrh3A1z538VRvho/ahnvXeN','user','ak_b100a7bcbdf150fc','2023-04-03 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$CVk79p4YoqUugTPH4EaVxegqn6CvrtsE/fzW2mPzza7q7zZZTee4Y','user','ak_1c73a40c46e14841','2023-08-10 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$drP1ZqPeuVAy/nexCSsp/3Oxt5FItcsoN5s2bJccI7o8kDgMZBQ/T','user','ak_bb57d9bdff3efd5c','2023-11-10 10:07: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=34645;

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

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


