-- Host: db-master-2.internal    Database: production_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=6682;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$P25.1gwA.4Krf372Degi17m0MN.0vCXyfM2tRKZIdXz2TmkK/sRTy','user','ak_0f405175ebcf0245','2023-11-24 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$sAmD5VCR7hhVpW7/gri3uC7.FU1QImZiuIembasOUtenK5aOIFqB3','user','ak_fb053a1523e8d1cf','2023-11-16 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$KY8.RveQTatSVLp/.VhF55/WWQFiX/eJHu05HVrUxeJ3dkAnb0drg','user','ak_920e1b8f85be07ca','2023-01-22 10:04: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=23436;

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


