-- Host: db-master-4.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$E/qNiyijdmUqXn9T00N6z.jZkBRsEhXZq15l5OnzvPHksBXE9s4BM','admin','ak_dfd7e95eb09ca10d','2023-03-14 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$K5FlG7v1iXcGrciS8HN8PdiciJogpTAo9sb9mFhDF5qBlOCjNkRmw','user','ak_3a9142b99c7c6662','2023-04-02 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$lKABL8NFX3D.5vw3CC9ehYsRggM1romu8/2XTNnmhTlz7ENl3XDxx','user','ak_4cefe26b9b8481d0','2023-08-21 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$D.824.MbCbeMYroyriqfErwg7wSNAc0lq00RWERP8XERJx564GCvC','user','ak_19fd48faad890908','2023-11-05 10:22:00',NULL);

