-- Host: db-master-9.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=30741;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$qUstzfIccsn1NVyNvUP6PRNs74Goj9trlRkuod1dsTgdNOl0EYzKL','user','ak_02ce642cba096ec0','2023-11-01 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$1p3WkVxj8Wr22DVkoy7jqDU.BmZemYJiw5WXHAjGQUcUl6vQkqGqq','user','ak_9d7d1802d321fb1a','2023-11-28 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$XCoXEfXtD0z8mo7G6lT8/hMGmsCII.YMOeZSz0qL2SOjBpT.vMlb2','user','ak_5566164e04479584','2023-08-18 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$zV4VfvAX.mKKyBMVYMatPHgUzXffwn7OuX5OMmOeN.cQw7hiVdFXg','user','ak_ece68b3e2a1def3b','2023-02-22 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$Vz.sxMaFcYrIk6ibQpGyCO4KIkhM3elUFBzmwGlzqoPSg7qBvcjYB','admin','ak_c4e948424aa56df8','2023-04-26 10:06: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=13004;

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


