-- Host: db-master-2.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=13481;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$qgAeHKowUht0bdnjuFpry8TDFCn8bt7iHl8ZEN7KFEIm91bQ86BM.','admin','ak_1b4a8a4d0d6c6189','2023-12-06 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$v.OV2TiPl3bGnTvn6n/8yR0XXzYbfylOXQjvw0XhZbYgn6F1Ce0V5','user','ak_dcd6f61dfe43a73d','2023-11-19 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Q./6kWcYBejCyRaurHoGhd5ZfZXOuAKJujeUk/qR.aPQ9c39nhCnO','user','ak_0a25115bda9085d9','2023-07-08 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$SFtjKOQIPNXgtnsvLSrQmZ7/RImHFj4A5oQb11DnbzjH4NZjb1gX.','user','ak_20a51b164d875548','2023-08-11 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$bhbVslMptxbdabcEzQECiibZ1HswncbwWW.9dXfn6DEQdvx1zboZe','user','ak_f33e6ff0e8755fd6','2023-12-24 10:20:00',NULL);

