-- Host: db-master-1.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$fHVHhVm06gEWgSxfIUgBK9ZY/qP.rDvtJpi4q/enqiDCi2JQhVpsi','user','ak_7618b26dfd35e944','2023-04-18 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$vV50CCRwCPVz8iVt44YfHK2FCirWOF6sKjWcXBs/JcHWRauog2fgh','admin','ak_2a95a79674726312','2023-08-13 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$9KPB9RmwOlQABUaqeciKL9ZNf9pEflxcOiEhkWwQqHfQhx8QbtDzJ','user','ak_efe065b4868b91c8','2023-07-17 10:03: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=30839;

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


