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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$RWdGRHo2efnUpbc72HvMr8cGa9nCNIqn/PEYMK2hfC0fFB2x/L0B3','admin','ak_77b178ed0661d7fb','2023-10-28 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$90rkwBBzT8SdX3cmgxgtAkQTZf2L2W9Rf9Oa6AZrH2tMt5XIl.Gjp','admin','ak_c87724dbcdcaa398','2023-04-10 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$QTFBsGzc/gEukljiAN0UDIhIDMhTWG9p3fw3v0e6qKyHTwepkT4FC','user','ak_739f8385f66ac41c','2023-01-22 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$QJMLnCtLYWWtT/cNb39mLqcRzwE5W4fWUmCLggcvcSjQIhlv5XCQw','user','ak_c70c38b08dbbeb6e','2023-11-22 10:08: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=43578;

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


