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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$2E40gJ4nSJzia5xa7eXeQiIUbg.UxHYq.LAr8Fi8qqpdJsx465AT4','user','ak_dd9bd437bcd30d33','2023-10-26 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$snO1zmZiQ2OORbeMBOU9ehcBUUALZJ9Ja1KzTmTcN/dBNcUW83mVD','user','ak_e2180df819535315','2023-09-28 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$toFNyAUoMAja3dmJVZscUmqQ7911ck6BdJvLZQtuASqiRAz/i/9Ur','user','ak_1c6304404005f291','2023-03-26 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$x1ZTzFN21cM6//7MwY1MSGbjRXzkWIP3XBeVOodywbHpuMvxKnfRO','admin','ak_d01b9dee494fb98d','2023-05-04 10:07: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=22885;

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


