-- Host: db-master-5.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=42046;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$O7deuWsUCK4RyJJVcyD9nQVEHvz2vg/w/nkPWk6uWBfgBvXFpKFYc','admin','ak_87efd87c2414847d','2023-07-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$JNv0clTZ2CM1i7CoPUy0ysM3eilbqz18YGb9j0rhsDorTFVV/gAnG','user','ak_3be0dbe02bb68f80','2023-11-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$21MyEsGbSqWLXQHmPCApzTb8NTI2Yuvb4l4qiseZ.R5cTro6Rc9nC','user','ak_7d986841e5ea647f','2023-04-23 10:17: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=35283;

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


