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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$OO3E9fe3BlUb6FIm0QWKz7UCCbETLD9X6cTkeEgbod1.pubBqDxEg','admin','ak_f8bc807ee87c9ffa','2023-08-28 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$Qrw6n0mTeBrg1ob0em/cBT4jrgoQ3oukfFrvf2sVr08lcfsQLXt.B','user','ak_d7a75f19dd8b3df9','2023-03-25 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$M75okuuXRaRba0BCiWUJAoJKhWU6Gv5aZw8C5TPCCwCWsr7fujY6Z','user','ak_251b36778a479600','2023-03-15 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$0ll1KwXn4oeSNPXq6694y19wbTSSUh8S5v3QOMrIklYwQ7aiGIO4K','user','ak_6f05269043404d75','2023-03-03 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$88yjL2ZF05xWVEtF7xkqGCgjDeHjQo9lbTp./X1t6OrWuEX.idVOp','user','ak_437177cecfabf06d','2023-01-10 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=29991;

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


