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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$PxzodAHNrKmzV4Jvc3fM8KgSjySvNhF75e2PNm0XYZa9p7GzbyKAL','user','ak_ec081c5dd9d00e9c','2023-12-02 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$PHKk1hl6ev2pBbGkWa9BlJbyHQlkHEGoqakWwcrR77Pk9wyz.5nsk','user','ak_8a7c45ac62338a6a','2023-08-16 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$yathbzMnnwOrICxr5jea3wzh0AcJz0b0EwIsS3x8dNG7prGRhWcrL','user','ak_1c1ba23cca092ba4','2023-12-26 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$Nz02BxJ4PVb8dleEEbXvRgfCzNQk64RMsJBTxW9VCavdgLw2plisB','user','ak_0c1aae1e7cc39d7a','2023-12-27 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$AnLERv.ZkJye.zsoPaXCaZimRpLffW9l7M1q/KQthmPdvC.Sgymmt','admin','ak_1742f8afeb919224','2023-02-20 10:11:00',NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=40632;

--
-- Dumping data for table `payments`
--


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

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


