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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$3kiNq7Wn0IzG4pO1JAuMDTfYgps0rMgqdjviefG2b2VL.azNQnrMh','admin','ak_e1f1d572b6c3d338','2023-05-28 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$MzhjY1mYx.wGRybj8JVTP2NfTYK66lYQwJp8THRa387GXOCg2E.rX','admin','ak_4df028270e12ac1d','2023-01-03 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$jiw9TVFWfjV4K3Wb1IvXrtJAdNoyvh0R1BtUUlqacWiBU0nA1tty1','admin','ak_531db4360b252f92','2023-10-10 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$QdL8CXpKd4FHB0fjznToJW8RqSSH6uhzeFlB3lji7BudvBS6nmX6U','user','ak_2c92425a4b55d30b','2023-09-28 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$G7qMe9NHsKbt3R5zQeBsn8mTEBtJHchnzljemylUHjpaU7D/EtLyg','admin','ak_3b2b2fced4a6a4a4','2023-05-10 10:23:00',NULL);

