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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$H.n0/CmPLYqYixTwF1g8qa2r3liR3/f20dUr46/ErEj.ounu0W8xC','admin','ak_6620e25069cffd58','2023-07-27 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$3rtIsQvhyUlbhLMocTNp70c7VrunKj43s4nFXiYDJ55/2RIPNfhvK','admin','ak_9ffb4cc48696f10b','2023-05-24 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$UD75yM4mjNogBOX5xSxHsjJa.Y6KsVazEMn6YlW7SU1h2qX1ZHEQa','user','ak_6db8577d6ffb2ff9','2023-02-04 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$xd/Zo5WyRGgZlZYIP6bP.ROZFWd6r2IyVcfhISw4eKUcUofSh.u0t','user','ak_5f40d5fc89332f85','2023-04-28 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$GLJL0YDC9mGCOPI7tXiydviwafpLPI8bW8MBZzWe.0HsdLih/h9TL','admin','ak_ac9b2750f0015740','2023-04-26 10:17: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=38487;

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


