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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Nd0d..ENGUb5EkQLWK0OftPruoyGV8NEsoK8x2JeUqAc4VeCx5bF/','user','ak_8a9d383e3f42bfae','2023-04-20 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$zyPEfTfyfgtct2lPIOIBcyyoOhZIySc2OeFT06dH.FUc01rvVK2qs','user','ak_a3a1d157c1cb3040','2023-03-19 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$jhaxEY9Nmc2A.9Daeh0KLBakQ4HzclxE0C7nY6hOghc8lq76Ud3o8','user','ak_0d87586ce55a28f3','2023-12-20 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=23489;

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


