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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$np79A287oWULmTaQudcgXv6Gg7Wlv7Ba/ai6LJ7tLaKteIWQf6yzD','admin','ak_4ba4a296a1c67097','2023-12-22 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$axjOonDuWCp9FNepi4wFdKtXh92KPZPEnJjL5ASunQ0KABCpWirU/','admin','ak_fcc5c29ee4c6c435','2023-12-21 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$7K.Lh.rvaeHszrAzG92O30YjWXF9MuHBy3tFtw6FABe2v0owlGQ.V','admin','ak_ce82a5f249a6960b','2023-10-28 10:00: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=34963;

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


