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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$KZDbJ9shh51rmFhGP7k0sY55ql8ABQF1WoVJzw23sFt4afo7Nj0Lg','user','ak_a5cbdabfe636ceb3','2023-04-17 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$/I9OWZfRxq51yAA87QIBISZEyCqJOMbub26E8yIuM5KD30Q3rkH0i','admin','ak_c1d82cb2657e355f','2023-09-22 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$.JYEOHLvurpgKl7DalfswJIn4g7yKkBlWKg7cZ7XeCUi7sOR4of4N','user','ak_703de0e7d10d5250','2023-02-24 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$9pLDqGtu.uV5oUSUicMhq24uz4R5yd3sAKMR3jDDHm32QBuzj7sFL','admin','ak_68a3c987ba63a9b2','2023-07-24 10:16: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=5011;

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


