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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$0OBSbEgREknz.8QEcl5AcBk4FT3MJulLnVpGA0AwjSC2e0VAJFQh6','user','ak_181c8b0ab0783772','2023-07-07 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$4i8eOk.m0OTKj0xDRtL1Xmn42QfzVDRMrJCPOVqKPCBsGGXOIqlmW','user','ak_603f8d897e106660','2023-09-28 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$T3sEZNPDBsirMsyXr64S8qntRmclX63OWXcsGcAAUdxklGxSJybYv','user','ak_b1c82e05ac7d318c','2023-12-18 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$DXhSS8qQx/T5zYOhz7slPs4OeVR35dnYSx2RzMNbU06WDhCzJnV.8','user','ak_17a42595b6f661fb','2023-02-11 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$t2FkAZuf2y3eynWWbJXtkv.UDpukj.6nKIKjl4bfSc87Cfp46yKjs','user','ak_2fe7af8ffdf7466d','2023-03-01 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$mDkErlsyQ6uSumId19Wj09x8A60WZ636qQhH3BimOrZEGGeIX5N7C','user','ak_c20871e99dffc6aa','2023-06-12 10:00: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=36813;

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


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

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


