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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=49393;

--
-- Dumping data for table `orders`
--


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$psN23LkAo2EclGMryWDRSpLM8eBqfjNMKpqLJVnZflNVffKwmgwYc','admin','ak_dcb2c142773956a7','2023-06-24 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$FwITOyXKe4t.6Lvm2VJXbEebngt3Cc0gxaI6n5MplVB6kGdefXkEm','admin','ak_362e0762781bbf10','2023-01-18 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$J0WII.GzmcYxVM504StvogTihdVTM.VCfDFB1mAguwtPMeN40TPJD','admin','ak_73cabe1059014f38','2023-07-11 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$HlPnK8R7y6f83URP1fHgJQPPJqCVz3D1T/IQaAXOWYcRKfvAluPRS','user','ak_18adf6654b35eac5','2023-11-18 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$1cfz67C7kPAj6QJmG.V15p2ZyPQj1wFmJVgvkge2GK8fGvE0Nx0Ji','admin','ak_d17cbc2953fa4723','2023-07-18 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$k/A20RuaFQRCoi/VCA1H443bM7H5NkZRQxVr2euyfWg2bcpNUo1F0','user','ak_a49cad9689353afd','2023-06-21 10:20:00',NULL);

