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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$tQye.2T1t9WVYmbQbT0/otY4k4WFLLnMQyir81OhDNDBD7tS4MWEJ','user','ak_edb6dbc889961f1d','2023-09-07 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$DI.HqO023EBGXXrkgrANEg11UYVy7NPgG4rhSHCIQK7b1YdwPaULB','admin','ak_d43eee588ee2fdf4','2023-06-28 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$ghEs5iZeAbk9fZW8jBd2uuPM/PZGMQ2YYEX0GqEGDhjhZaAjbX0t5','user','ak_df65d8edda865b06','2023-10-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$ROYUKnG3KOai3Efraz6XQ59zlo6WRJ6Cnp/uvFf1lHp9ue/k2jUj7','admin','ak_cfde86ad5b69316e','2023-04-28 10:07: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=37210;

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


