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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$pBM7.iQheRQ/VjItvZCSL6f6cg3Da0td1O.MFnTmpfyui.rxL/EFq','user','ak_df413902fe5dc064','2023-03-20 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$rQ8/ijjnHa8NAGxZYCXAUSPYJOVMa1G8C68YY.JNIo7VOjy4vgJZq','admin','ak_992b19c44b147cb9','2023-10-28 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$XNXZJslYo76tIh6A8VU2mgZ7GCNLc56FTtImGqraXHZPvFnq.hoyh','admin','ak_4302f4ee0d66641a','2023-11-05 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$/0SwOi22rgukwQpZAuf7R2sxg9dDpUtby3vpHQ93D4KrrS5krMO1g','admin','ak_51884ff8d1439eb7','2023-12-06 10:17: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=8872;

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


