-- Host: db-master-0.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=50607;

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=7756;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$5fGi3iSOc8mGplAU7V9iTPKO4jsNlNphM2iUgiGh7akUKcW5lpCxz','admin','ak_31a68314c19be3e2','2023-07-19 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$gQZaGFkkDNadNmo7FMGuJ3Ew8Y62CQq6eO0qXOljf2pMwFmouIOtl','admin','ak_021dc0628ab21494','2023-09-28 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$fCux6TZ9iUnEeHcO2/AXGFTs6Njl8W.t.FaFhX3sy4oL4ZNL3lJ4P','admin','ak_24e2cb4fb8b70666','2023-09-05 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$T0IbbfoDnaHhbqFQB1wLtqxpJYBycKoUVSfII92gts8lXzQ/0yXwk','admin','ak_bea2ff707bf8e05b','2023-07-07 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$PJbqpsiLQWEqcW40SJePUS7n6PRKQPovwkEmu39uydoJwppO8NnDn','user','ak_a7e6c32b3ff8c0f7','2023-05-16 10:17:00',NULL);

