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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$hKN11aAFoHx2oFQdJXCVATn4KGDv8RMyM6hPOO5tAnZ5UeyT2AWF7','user','ak_8d09ec42127ef286','2023-08-24 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$gBJ8gWpyEx9Ur4/LD3ISxMpZxMZk7xaJ4pqAWl/X/bI33d2h8BC7Q','user','ak_67e3b9fc7e7eb460','2023-05-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$jCrbYFxi4JBqeVftXf0Uq7V9z444ZaRYDASBxqnzJpmHMJSiUV0qQ','admin','ak_e9378a9d72f5a3fe','2023-11-19 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=22025;

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


