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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$co3xG5uHO8xfuzZWcvmXLuQTFhnheAVFiDsi3scWniElmv.kccf1k','user','ak_ee56b3ac8e76b7dd','2023-08-02 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$xCoJacrsRxLqCQ0V2khC04I7itV3dKVDpEAuyUcJz1I04ETU5BsCW','admin','ak_ad8900d68a1dfc35','2023-03-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$jX50c2vFFUPFJvo00gkhXPSTFKHXjjhMV8/sFIUYizyzk6VVa4TKu','user','ak_662fa3fc0d6f665d','2023-07-21 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$i9gNE.pC9T/kiURnzcuhoxuj/fDGG2CLT30lvC23KPdbDlIBd5r0L','user','ak_54793d50a9a0caf6','2023-09-06 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=39941;

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


