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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$MWcDHUQqaSwMAW6LOiZSGuVPibJFKD.6MzznHJx0rLz8oPxj7FQV7','user','ak_38bb5d03eb278ddb','2023-12-02 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$KQ2SNGVexFCsnprCaUGi2YNxyJE5Oc/JVvlo4ibIZQdZWdsCNmT1N','user','ak_e2b02b751d3b86c6','2023-05-01 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$w/MSX2K43gLWfLSpsYYwr/Qm90Z7q6zq4W1d7iJ5njU5ZEi.R9M9E','admin','ak_dbccb8ae02d9de13','2023-11-11 10:05: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=48558;

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


