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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$C5zE6tDS9RXc7SXuYX3qqsBKGHNVBkC.eCbapeq8Jtauaq3MTMw4D','user','ak_d6f3c11839a3046d','2023-03-28 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$46FZHAyfselgoDGs.WipCwC4W/M0CWzojk/mKxemphgK3woxB38uD','user','ak_dd54df81ba0d665f','2023-04-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$BjvC9kbfJ1cNVizrDWDluWkcs.Q16Vw7IKTS.JCXakUqIttjHHyJK','user','ak_7b00ebc2e6a0729d','2023-01-20 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$BmRQNOam6gFfrbAx.uqLMa76dFJa5Plig1c7f9abVZ4DKlctbdx57','admin','ak_083148fe160884d7','2023-12-25 10:20: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=43853;

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


