-- Host: db-master-1.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$craYQtw7v0guz1A6MoDeM929A0LR80klEDjf8DaDkWWF2jWjNLAm4','user','ak_d97de5bc51a8f009','2023-02-15 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$XskUJWDosAXJAcmhPAaXX4bAC0n7M1d3DLyeaVOjbAzu7uYKZlW2R','user','ak_369ff020707fd3b1','2023-12-19 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$PeKvC97shqL2O5pbv7De1319Gb9TFYV6aIEjeS3mFS0MFslQubbPV','user','ak_c3963f22bd0c0da6','2023-01-09 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$fwtCcgWf1EyeVilGigPKazdmgIp.dL6o9fOvrl4VSEo951vR0SICD','user','ak_40a1e442d7fd1fe4','2023-10-07 10:03:00',NULL);

