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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$9OEMdwzHWxCfOTVR/JHwke5t5K0KbUEdwcM5U7MP9E1uGY04LcFc.','admin','ak_8771aedb0f12ddc8','2023-12-26 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Dak64GFHG.NO64z9cn881olHh5sIux2Y3pCWk4NPnmZ9HI7RaCkS8','admin','ak_e57a3794d41cac3c','2023-10-19 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$PAKjvF1qM88iW0OxqiR1c69vRO3bzlS/JUNja4i5IeaEWwKOB1fWG','user','ak_9980fb340e2a0b07','2023-07-11 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$M1kNmC.I9mNfgeFFdoW58bE3cMiPpA4nypbVOwXpGJBfkSjMDYPrq','user','ak_75bbf8fba0f58f3d','2023-10-07 10:10: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=50528;

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

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


