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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$.UQUz3EoL2JmmT8FNXjA1ya53/z8Ebnh7RJqBGrGI9Kw640p0dHGs','user','ak_55e1332f557a4b07','2023-07-03 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$0MOjDLZRwI/oQX7yNg5ZnfrU.pZT5t0kMdyPL9ki7X6PKdNg7Ipxn','user','ak_358030af996b8fe6','2023-08-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$YLlXHPPcDGuuzAtO15jotfbQrVSX.q5XvvcH7M7oLXWkkjYThybqd','user','ak_da5b961c64513719','2023-03-17 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$FoSZaO32gZv1oJCbE4bPx2n1oFc6rEun.yfV6UVncSaLucpFULFU3','user','ak_2066f19779688734','2023-07-02 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$UBC8SQxrLgorIjDS.cBGhdmoRHUYb04JfaXarnovrvDXLKxU91TMS','user','ak_e2af609e12f933bd','2023-01-23 10:17:00',NULL);

