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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Z5N5gnL.ZZshRjmo0nUudZgsHstgtz5xPhHShY/OMBg0Uw3y.kAEF','admin','ak_a63afa2f0b49ec6f','2023-04-01 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$cJ/Llg76KxXnhF1gMVKvot4ET550mtqAEcCxnJakrrdB5XXFWVi6v','admin','ak_87295de04d7b4be1','2023-06-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$3LiFGiQv6BoxNVYIaMDxCaS2eVNqHUfj8UyzA/mBOxPu3MXQQ38Hy','admin','ak_c69f7d3d294e561e','2023-11-21 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$d81yuUuL1X3EshxtlyZ9fKtG515H6PzaOwUOCmHQQM/7fMeWnNyiH','admin','ak_c3fb2050cbb54555','2023-09-23 10:22: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=38605;

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


