-- Host: db-master-4.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=10053;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$XHZ0ljVPVBJh7zuTNYwETsoOSWNvUSxpu4Y/TCGfAXB4KVQioOmm2','user','ak_f921c27cd04a1214','2023-11-15 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$FlJyKmf0U5Urf8eWmLJfLn4gbcheCvMGgu20.3BrGR6mNfZyY9USQ','user','ak_31016e5330fd831b','2023-03-28 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$in6QSN1C1Fe952WXh3OXEvOGjCPUofb.1iwEVtpbjCudiDSZ32/./','user','ak_5831c7a0910dc996','2023-04-24 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$W/500/J5RJB4KnTq6DVrObjvL4kV15nr/tTsYtZfbA6GSEb5sc/PW','user','ak_e4b8f3945f0eb69c','2023-06-14 10:15: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=34115;

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


