-- Host: db-master-9.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=49690;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$d6x7ykgoC7U8oFlCVHqrrOtmpQlIe85EGWXidm0rH6htB4MPhd/Cf','user','ak_6ffbdd1bd535f610','2023-10-23 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$zgK0p4oVLzUJDi1CrsaR6HRoaYBNyXedWUj5fvPICL.TBtZJM7fZk','user','ak_20fd5c2fda934b1a','2023-10-19 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$H4x8.zBCLjeSRRhuCwMyjW1QLtEwrzgqq8wfesGv3AG3uymS6Q5Hm','admin','ak_00ea62feb9be922d','2023-08-11 10:03:00',NULL);

