-- Host: db-master-3.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=32939;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$f.59NYGjXg4UqTW/9KZrcjd5/Rrnu7HkMJBPX7GeEf0csFCUl6512','user','ak_3b283bee3ab01675','2023-09-02 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$ocNDEIrGB86IVPLx/jQnnsooG9HIgG93nd1b.ucN6UaIsBfpUqSC/','user','ak_9e223a87a06eb774','2023-02-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$.ija/DfMDa5ZunQCqF.3vAgPlBdijpAIHiI0HprCzdDjsqfn5fohj','user','ak_7b1991cad14943c9','2023-11-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$3.xg9dIAhh5LIvJVlUfuPxY2OV1H702VdhC/e3Uz0BfCuZKl5X0LB','user','ak_be10a44e6d7779ce','2023-12-26 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$0AuNPYrsKp2Krue2zCuG.EygPX41XtmfAFxnwWKaIdVNTNs/jsedm','user','ak_a1d796f726d48fcd','2023-11-26 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=31648;

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


