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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$AzaqQCSwSSW0c1JFmv9s98.QI/OVIYy69e5E0SvXBC.u2fooLAizL','admin','ak_cbb3eb47579f6849','2023-02-28 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$8gNHvJ5qyYF5Xq9hV6DhKA123.y.OakiiyP/.YB/bdNSlERr3H24X','user','ak_7bfc47757d55ceb7','2023-01-26 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$PJXF.kVsM4o0Efxi97Sbn1Hp3lol8sXuUBx8pTSKTpr3yNcS.9Hkj','user','ak_3b3e50ca24c36659','2023-06-14 10:13:00',NULL);

