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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$kMRowGmrnlCE9GQtqTpvPOGzFZOLfaD8/DWnxkCZNYz4oSrF92fwY','user','ak_e1a55c7d4b8f281c','2023-02-01 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$gANbJrcAU..q8ZctNwFDitTxqUlDBs2N5UrRVj0.xt/zsMvL0U8oJ','user','ak_b7c130caafe28b76','2023-06-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$3iHSILlDv7K9w6oXcL.33HirY3/rvRuNzZ5s9KEy7c9LFSUrJ8mtN','admin','ak_46b88bd54e92ba17','2023-11-04 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$GTZaaN1TESf27QvTk6kX/qG1wE9QbzNo6vTnQ0t6Vls73JOr0js7Q','user','ak_ae8e301e35be70ae','2023-08-11 10:21: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=50241;

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


