-- Host: db-master-8.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$mPCLP2uh9iTIfD7VkuGTtf6CnXxP.S/0CYVIS4zRIJ5qj.GbZ8AQP','user','ak_fbaa5c715fc61d5a','2023-08-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$K2H6dtVFU1gvPCxyVvBPFpXkJ5U8bKgYalBTcClfvjLvnuuKkRTn0','user','ak_003fc9dcefaad09e','2023-06-11 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$slJuSLhb3zhMzd2AK8n9kuTCcQmmCFCuvGJ9JSMxX548.ztst/Dfb','user','ak_40f54f3fd7619f3f','2023-05-01 10:21: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=40233;

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


