-- Host: db-master-6.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=33304;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$FHXY8Adl8Y/89XnXIUpcvcDORE27TskheKYr/XMDnMnPhxPVaHGyZ','admin','ak_bd3d7d1180b9e8bb','2023-01-03 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$36nSF3F.GNZ.bKnXfHGQxxsLuY4T2n5RCIRPxpw1EdCUDcsqylYuf','admin','ak_d89346b5dc4f5317','2023-01-08 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$8Ob/nb0dwgj9.HDK2oLGKPRoFf6STQCyjy3NQGhKw.uYXXd82UxVR','admin','ak_bb7c406779df9a1e','2023-09-28 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$uAg.bohk47804mBNgvlxe8e9TF7HtsZi1KuI/TIoR3Rr4til51JDD','user','ak_2582e714bbf3efa0','2023-02-07 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$cpB.eex7LwRu4eQ47sOVcKgJMWD9DWDTOVj/rradAXNIJjpWt9il9','admin','ak_3ea492261b5c0e55','2023-01-23 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$h3xTl1fONon0.0i1BrUyKxmuFGP/OKyFglQ9CWVhxJ7pLIZY4gzJo','user','ak_b679c5cad0a7f9eb','2023-07-10 10:14:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=9374;

--
-- Dumping data for table `products`
--


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

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


