-- Host: db-master-8.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=29086;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$f3hltRag0f/2vvfeCIGrbi1UHf98.SeqsHIous3pkOY/CWg.yjpr1','user','ak_5d42d1bcd6b8ef6a','2023-10-02 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$GbZ8BTi/fjnG8DUGCg1khr4/GapKr4IhPYgpcoCjrE4NSMXdNC7oi','user','ak_e7b11ed1802c33e7','2023-10-05 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$uuhdY85YE9b5vAcs42l0ESwdSABbQ1UCh0LZc.7LeUU0OYLZbQLjM','admin','ak_2ec0f1a5916d5874','2023-08-06 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$YxdXNdHmVgno54AZHeqcT6bqDJQpoM5YT6eVNTfXLxGv.FZKuXBmS','user','ak_fb926eb740b4e2c6','2023-08-23 10:04:00',NULL);

