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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$8G4xVxjbzajUCQ/WypsKgH82K5F9L9BYpaxGE6uxBC4YM9/CNKGhl','user','ak_3a48556a286b838b','2023-12-20 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$7qkq3Ucx9VllY6S3NT51xMt3NGTP8djuLEhzEeCJnWNP.OsqbP4O.','user','ak_049f8b89cadd9303','2023-08-05 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$pUov9WCB5mna1a3M9p1dyQnQxbeomXfg6sf6yyN.SQZZTe.SnNspM','admin','ak_19c4fe2b895e78e5','2023-06-16 10:01: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=41417;

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


