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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$JdtOKvrhPiGSyHNn0TKUjs74Sft2vG/BP02mTkLBCPMa6Vwyn7gEj','user','ak_b107bc49fc61a88c','2023-07-03 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$/sktCj/pJ1DNo22FbG/TacwZ/zvyY99hgufAiJLljeRfcFh8sK/Wy','user','ak_b9a31ae20e527877','2023-10-16 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$thUkqq/O2duQbksHw5tUMj56xciMYzAIaakB8hfByori2a/3iJfSv','user','ak_49d54ac01a45ace7','2023-11-20 10:20:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=16358;

--
-- Dumping data for table `sessions`
--


