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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$cHt8A0eP7J1wKrv.9My9HbNUv9cvRmPj0U2PRHtFDQjGQHejMlPWt','user','ak_5c8cf2a043dc9930','2023-02-25 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$9clt.7cdQb6IyUlYPtZIgXRDb2Giq6uc1qHmxNo7fxVOejKtlXCOS','user','ak_f01f8c4618644b41','2023-10-22 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$/BgvAMpnc1bnjkAIDYho9crH3yYNyfXIPgv3UKWIhVKTHJ7WGuJk2','admin','ak_83d646025c7a3888','2023-01-28 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$eMMz/gl4zMZLWNiQTZhpzhm63h9dAbUEGgUrFov5wiXrtOEpowd7G','user','ak_3d602e2d49e50398','2023-10-16 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$i.xXNR4nop0zzY4ErMVTzVT01NfJi6Kaqa/j9/5rhxxdi.NIhLinM','admin','ak_d2b5c0f6f6839651','2023-04-02 10:04: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=49776;

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


