-- Host: db-master-1.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$53xYopiBaMclxPjF6kb.LHPS2PQLi8WUjjswpIRASDW5tkZdwwShZ','user','ak_c333f8a5016c0247','2023-09-27 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$M6yAKWRG..aAZ0kb81RWhxMaJCIcmTbb27Rbi3SrWrKY4YINPXvfD','admin','ak_c0021af58ff96dd6','2023-04-26 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$SjUiW5AkZwDumNc.oYQFeuEZtuA850GsWclo0psRyX7C7HvC0RJ4C','user','ak_214879ca5e536471','2023-03-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$hAAvXWhSZXpjJW15QnQTedUHmWWRhamy5BTvJRk1ADOH2QIVbYeDB','user','ak_86c3736952ae1703','2023-04-25 10:14:00',NULL);

