-- Host: db-master-4.internal    Database: ecommerce


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

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


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$iYFcR9fkItYJNlFblMGRNduIGwD1u1BkmkW66p6FTrIvUuyDL7/wh','admin','ak_f967664019efbae7','2023-08-06 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$Z6yZzRTC9Gt0qGucCPLZVXm3jEMxKLExSkgkme7fDH4yt7Qgr2kcl','admin','ak_640ac1abb1a05f1b','2023-10-08 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$9FSkKX4P3LCGdp4wJcz46wRkt/E50Bbd7VPIn063llrc6d1NzaAT/','admin','ak_501c7e27c1930dc8','2023-09-28 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$TZfkKwzbhqSgfVs5SAbnT8aBEs1iLQlImVW6flQp37P3aURfLwLyJ','user','ak_e742773a682934c4','2023-12-02 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$7Ms39JNaHzDphkwr5cv/HMIBnFGyTLuZmIAzc0AiimE0ChRZxGXrX','admin','ak_5ccc2c4b0fd2279a','2023-10-18 10:10:00',NULL);

