-- Host: db-master-0.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=30984;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$twaqMBb8vwFFOduslvPOh6ACxJDI/La6zFjwMpWPIPyDyoUZEXyXt','user','ak_4086d35842983907','2023-05-14 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$s/jchK7Wi1e1w3VrFe1YAXM7cINycrJY15ULslBvIaNTMNccdqRKj','admin','ak_6c4a18ab17132fa8','2023-12-27 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$jbZSWzVcqmJ02dOG4CzUQ55FDivFjr4rbFHc8CCyJxhfVOImw6gE9','user','ak_3e7819c6c7e689bb','2023-08-12 10:20: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=39435;

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


