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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$maQQ2GeG1DgzFE9Mr2NdPvOUGXEGLupsgj6Tb0PMTi.g9e5yCw.wi','admin','ak_dd0634faf5f583da','2023-07-03 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$we0RwktatrQt0CTE1qBm4bzAGhHNn3d3X8vDGQLfY1sp4cXudv8dH','admin','ak_c639cfc0e1b91151','2023-09-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$OdNyW6YvpYxUc01CbRP42TJjevG0WUYoWb050bmP.F.xNbJH7M1hc','admin','ak_bfc4c2833fb11d6f','2023-03-04 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$kA6taNgXod4IDBx3QXiPC6KWXvx66qJ83i/fH7Pv.b9oneVnV6MhB','admin','ak_744b0a4637219f8c','2023-01-03 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$HMycwFJZyPt1np7eVcBayN95qUietCj9//xp3v.RPS7JU/0zs30XP','user','ak_57529041783c11f3','2023-03-24 10:03:00',NULL);

