-- Host: db-master-4.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=7692;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$nR7cF95O9KWNuULPK3MGSEUYGUXSEjAdxWEMHr8/4khog/6BxuTYq','user','ak_d5b4f51e10a9bc7c','2023-06-28 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$AQJYMOMX8SGFX7AFVbUxiUzlqzmVVP6cr1YIiclKA.fOyTTLFdGdq','admin','ak_831ed13dafdd7f25','2023-02-05 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$31/vBVAeS1eFIsi//rOAg6GU4F5AESjFPjZeeI8E2A1NVDrRlwStu','user','ak_cd3427c7e8a3c302','2023-12-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$CQvbn0BoI.cCrSBDgmLMfk0Vh3wimHI6.P5JOaeeA.oz64GKtctBt','user','ak_6b59ab3debea072a','2023-08-23 10:08:00',NULL);

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

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


