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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$v2E4IYfbKbFZKs0nYWwtpX/vECYQioKDV9F9jFRn.2kFsWFrWMfbF','user','ak_be1600395ae1125f','2023-02-21 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$qsyix.bmRsX/xC5WZjiaQcdCJRKjL64XpSzKxQ2wzS7v7BBhy.EJx','user','ak_499c41b79160dd56','2023-07-25 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$MkNQNbAmzUrsmi6Quw4arzxxu/Qcd.MUzsw08zJmbSUlLWOp18F5K','user','ak_29627a49393b96df','2023-12-16 10:04:00',NULL);

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

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


