-- Host: db-master-3.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=15531;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$68uOir.76JMhlFTwyu5dQsCtWcprOPnPmr/GTJsW3IxFa5BGU.ezi','user','ak_1f1b7d7a5fe7411a','2023-06-01 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$MgbR6t2q76C3i4llerEqIMds3t04nW2xi.nXBQpn1jnHBf9.dNbNA','admin','ak_2716fa2767180edc','2023-07-02 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$z1HsD/U37Jyzarz1ZpqDvf7yvsKDpvjDpEpGwLKX03GE.nqxHnhv8','user','ak_f3af843d94e2b8db','2023-08-24 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$4EhKCUmM8KmrnA/20R.5x48Myt70dM9aml.HXszED2ROaHioOkGVN','admin','ak_d6fb11496c857ee9','2023-05-10 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$FfmBjdKHug2fyXUhAZhGi9UUg3lE7VlU0IdWUvW.wHih51xS73bRQ','user','ak_34b5d8b1aa1ef160','2023-12-25 10:18: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=38127;

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

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


