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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$YP6.eLskjnS0vY/xwIZPKymjg4Odk4ALEK/R6FFhWCwsPhg3HVbIg','user','ak_b6a8dbad55e652de','2023-07-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$mh0MpBJZNLZfAxlCgBFdCKRveAD7sl5dxswLOXKtNEQEcBFDW2EBe','user','ak_30eb3aba39664acc','2023-09-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$.//tWOex4CAmOSTfwPbYPioClIOJBrLnHI/ItfECmMmV8CUwpP/HJ','user','ak_6b195079da36fab7','2023-05-03 10:07: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=46296;

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


