-- Host: db-master-6.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=32999;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$b1ms1UzrE/f5k97KA5/Kxywhuv.hN82hJ6VaEpCMXWBwnLeneusDR','user','ak_fe6b336780ea5915','2023-07-07 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$GyX7NAmY5QgX1Y./4.Dk6SRRiRuwNaEgRZuN6gCoB2kyAUUTvuEsZ','admin','ak_1e90868a5768a2ca','2023-02-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$j6..eSxvoaYeWQZMQ6EtuYmg0Q0eny/9XFFXu6T5txaaLSakp7zGo','admin','ak_54306bb21ae6ab2a','2023-03-20 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$TbLZwkqUBLwSQ5BrrBJ.uVKkqcbGR9uMCNpNkb98rmNW1/jjqBtLz','user','ak_0828c0b56cd9cbb1','2023-12-13 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$HiNhs4e7AkgBHtYHAy0rBSj/Cj9N8/y8fiW3loAiPU1A4ky2nDey0','user','ak_e4038cf55a831023','2023-06-27 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$6IWtdmVjIMC2lcf/20VGHcpBQZpZEm044/RagSfG9V0djZvTEfk7.','user','ak_ba275c80a5a6e9d1','2023-01-25 10:08:00',NULL);

