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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$ItbXYsIWr0h4dklvSSOqlg3SwWvoojsWsaMQIdjoRRamkyaWjvCi5','user','ak_bb607f6e4dbdb9fb','2023-09-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$adzoj2b6lq4srjJ1aOPmZO4d4ymglL9d5wv9pOM7P/wUUlRmIvBqd','user','ak_1995a4e0fd6b6061','2023-03-26 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$tU3E/CUL67Y6G5MvuWifSpL.YEQ0kblRabwcyd09UIgfJnm.xFx.d','user','ak_12a09b8047de7379','2023-12-18 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$bU2nzkk9X8MRJlmepDaBdhOR/mP6gWi9L2n1tbsJFhQuItifAqWiJ','user','ak_7577c03678cc22b9','2023-05-17 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$pzwILNwn54Fl5fa0TXXyoazhqIReL4Eb1GquWNrD3SwG8SYzVvtOp','admin','ak_3968806b0a5dee06','2023-11-22 10:16: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=26472;

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


