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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$lyQhs2UkIzC3I7upyDtULZ9bVr8pbzEZU.CsrEZPW2Z8QV6BxxMoc','admin','ak_5b2158acd80e831f','2023-08-14 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$BF4cF1pMPuRH4vR15CRz/9oGBRldV1W6HML6J8xiUHrEzfS43mA.c','user','ak_e2cd8c66e7d5a45c','2023-05-17 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$vO8wCipCDPTWTRb/rRMDzBKvTjznywd2/riOD3Zeqzs0wpY3Eq6Sw','admin','ak_2ad4a0d2ea017358','2023-01-05 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$NDR4mxu.YRIpte43h4F2NSgOVPtrpFsrJuTjBqTCYlJ6yTy4jqqSm','admin','ak_80b51171f7a8ffb9','2023-08-08 10:11: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=29348;

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


