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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$2ofEn9AichxlxBxrTeFZgD4Zs9rtdIpS4n95G/8eyCXbLBUXDeOYo','admin','ak_e3cda379272615e6','2023-03-19 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$oxPj6AQfLmnOhIiHCJkg7YcgyZ8mhHFC5gj8ll/CsBZAZwionF30t','user','ak_317bd092b71971e7','2023-07-18 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$XXf/lQmfWVR9kAHyRe6hvlic/tVndVfbgH/YrK9jQ9E/.TAxZI8i2','admin','ak_1b1bdf2010cb34fd','2023-05-11 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$0NBdtpHbk8DugKD0dbayta0BO3oydjhFDmdPh1MZBDzOOLJucc1c3','user','ak_da6c3cd04577be2e','2023-11-25 10:21: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=32189;

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


