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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$HtyhnHPqg6kFWeF7Wz7ykmHluB6Kww73rgIWaeio68DjKD4bU2RF7','admin','ak_68eaeb4664c2dd4b','2023-04-01 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$fn0TRT2c/GjrZJyhhbXI4WouR4Stjup.OzvAHX972pyGe./593m9N','admin','ak_847220efdbfd71be','2023-02-10 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$W8U3o1NPZaEd04TEdsZHm84w880j/8KbhMndYyjKR4yxsutBlZ2BG','user','ak_32af5ec21959e3e6','2023-09-05 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$uFxdncvVA4Fuo307Jr9JnR19S4p.W7eHJ6hak5P9rIt.1NlVmnI94','admin','ak_e9e2f984d4ae47db','2023-12-28 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$/2aAfbs.ope/O6n4Y3l8fh4ycMy3VBsGXVusm9jk0uxTQfw/0nJEq','admin','ak_b50c2137c05208d0','2023-02-07 10:05: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=29063;

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


