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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$HoaCpEeuKcYYndhF3Qx6qjEVdnTx21lLM6WKwJmyK72rucadoIxI1','admin','ak_b325fe734ea709d3','2023-06-13 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$m7kuqurmarVvy/G8SnmWkSG2u.i8MNf2OCvHYCp.CJHMM9k9qqxZQ','admin','ak_088da7331853d2da','2023-05-28 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$6kjZpV83beyPbyoZ7yib3FpYDfULQTcr47L2wFQRYsiLdvRGOoMve','user','ak_2a963c8a0344d1a7','2023-06-17 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$EQ7uyzBk0Pftjj7NnXjpw0qTFXWtB0c1iZKWJswm287BN1olC9uoR','user','ak_9181e9f04723554a','2023-03-09 10:20:00',NULL);

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

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


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

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


