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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$LmiFq6EIgVSta3zSTo6keIdsp3p2bnsAdlyTGdnB3cHpa5gOI1uS5','user','ak_1ef69a2d56251b1c','2023-08-01 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$U.4JO06512/7DcFzZQSlsDACNNSY1ntfEWvn3yI2U2B9F8qYTzUGs','user','ak_150b10a4078ce5f3','2023-05-12 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$HgNZobmazI7NTDaHCJsVwV8kKgyrg4m.tJnviZ2WX1WtxtnKTZGeT','admin','ak_a6383277a9f939ee','2023-05-05 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$6POQtqsP4Mc4smlQq/IlPY0LiEtWTvophP3jakNH5eJI.8/FAbKGE','user','ak_b55d75b7665d6e48','2023-07-07 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$dNxaMaUIG2QJrZrUNdAeFniEFzHb5w5f5ga5yZG2zKzO541s018hG','user','ak_8d7aef5b7261fd9c','2023-09-16 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$Pa4fZd2RGbVjaRkWo0cbicHUn6z/Gamui6I35lIXC4oItd5IpMzJW','user','ak_d79b1738df1160f7','2023-12-07 10:16: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=18810;

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

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


