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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$OGSCAMpJmnCc1BUoNsPubVsdUegBElnlhdteASSse/nBW.7MWh4gD','admin','ak_e1f83e6f34641838','2023-07-16 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$Ozb1Q6x4RP6gHdHLZ7yAbGzmRi4hfm3Yj/wizhw.vu2UFYmdz2pqT','user','ak_8b4b122405ce4c39','2023-03-02 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$aEdSBGgOXZSciLpx6jYSZBHhoSLDtrsf7RcpJklQxL5t7vHwypiww','user','ak_e9d7f78e71dd232d','2023-02-25 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$NwsrzyUODMjUBaZQ2mraYHoq440IYmRMfOIW9smUQu4bcwu6MkwbA','user','ak_bf023cfc3002bca4','2023-12-04 10:21:00',NULL);

