-- Host: db-master-6.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=38367;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Rgydc6czkeHftwWlyN3CgZ2LtOANUMNfpqDKTOAGpnIyEizpUlRmc','admin','ak_18fc52dcecb3e5c4','2023-11-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$0Qmgh32y8/pWEOdizd8dMH4sK2G/GXiyHwyA7czbKeVtN6vtbTQQp','admin','ak_cb5454461aa02167','2023-02-10 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$trEqyc98r8MCuDLstJgBTkD7qWUqIJ9wN4DOUnAzXhG746KxJ487h','user','ak_64e8fed8510753cd','2023-05-17 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$NbOSw9ww8O2Stob1vnYFGf6Jwx5aT4cHIteAO2C5gcfVEMhOiVSp5','admin','ak_9092497b28bdbd56','2023-08-14 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$OrMkrCusRpNLfzlQfKYGG1pyz05a5wlIQPf.W2ar1JqEAG9CIenXJ','admin','ak_5a26fbff4bd38743','2023-09-05 10:11:00',NULL);

