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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$kO8iDP8xX4bS1tzQSZ8/UGFZ0tBxHBOAGedKO6ANLdkQwtCstVkN4','user','ak_18d95127c9ebefa0','2023-04-05 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$SktXTgsyD4yQwqgqnJ0CSsCwXXBzBTDqgQqNgcR5Z8.uAhiUdhicc','user','ak_ab7f930dffd9248c','2023-10-20 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$SBl6/XYnuYHjJh8a4O./kY.t2BHALa9OEIfDB3j8n/1IK.9jwumIC','user','ak_7c5b5e18a27952c3','2023-10-11 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$ahWaM9AqOy7dn0QdruXztbxMDo7BOTkyxY46hjYqECUhNX2rK8J3B','user','ak_771fe160d95ee6ef','2023-11-23 10:06: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=34842;

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


