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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$GIGEY50fruYc2n.3G/4kXK9I7OOblj//Nz3Vt2NmXnd1hKxEMPkwe','user','ak_97078fad3667742b','2023-07-28 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$oIwi28mbsQsjAYwBkJ1WnlSNZzzFg91twyZ1ISK98vJmxHJcNX7kE','user','ak_a71971d6baebb63e','2023-07-06 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$XOxDB4B6D4W88QUWQB69MuhBwvbPf/5lmDTJlg6KS9VJVxiJm/NCM','user','ak_c03fa2285e591f37','2023-08-20 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$CqZHHG0YyDvX6O3IT0tq9v2vg77BJGBKc07Gq3K63PXjNCbho5chb','user','ak_c4144eef367f44f0','2023-09-26 10:03: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=43006;

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

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


