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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$BXZZFW3w.6cHCoK7eOHLmhUejdBSmYLX2URGX0MvEyAr3tklY45UK','admin','ak_d4cb46756df234de','2023-04-09 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$8kXcIt9FwyHaRDaW5eMCrJov3nyKkL2OgtDC9XHelYoRD2j3577Mg','admin','ak_94c8bb44a044fe78','2023-07-23 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$hmYCfDJlZybAN/YJOvMl2uVfmdHJ3COG8cCTWnMO7ZxRp2SVKdP9o','admin','ak_9b30739bf5a6592a','2023-04-13 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$h05z3ald.92Y1pXtiFD15Jv6kxOFPPScVb1hwLq554aMljy2cXYXo','user','ak_723ae1417df1b1d9','2023-08-26 10:22: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=12773;

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


