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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$FwUkP.mYOHXAEiFU952KGj5cdZpki1kgyv1PImdh2PrUX9pwCHyqE','user','ak_9cc56fd86d2f2ce6','2023-11-24 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$n0aH.0uyI./PtdnAoAnY/lRUOwr/jvGZ/EsPZUXlVYV/lRc4f4adc','user','ak_bfcb0f8b3b3e739c','2023-09-19 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$mxSZAUXSAkUqsBwb/jmRpghoFNNDQ3m2vpQxlQkVI00y1FHuz7S50','admin','ak_af3029b93508f985','2023-06-14 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$jnqfib4Px.QrOOghHRU5/9kq/QH7TgSlw4WNEwN5UD42mFw9upc93','admin','ak_be499be772ad4c92','2023-06-26 10:12:00',NULL);

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

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


