-- Host: db-master-9.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$phcXMHyQWHfn1O7N7Qj6e5S/g5okmpDOMJVj40H3ct/7qEbLiVOR3','user','ak_2d92f0f40492dec9','2023-04-09 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$WLtaihrLOGWbYhKPNXGV2s3FgGdq9WiC5A9zAnGDkFa0kdE49FqPo','user','ak_c95b395f7eb4153e','2023-12-11 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$KccDW.FSjswmsmT1PB.0lF.H1j68v40zvQAxV1N9jmTqf1LWmOmdE','admin','ak_6bc1a982167f431c','2023-12-22 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$JKiqY5Y6rfrrwxVe5bmLlEi2aqA6b4tqFJL/Zuz9xbTGH1ZJvA.4Q','admin','ak_ba30263f3d04bcd6','2023-04-21 10:21: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=44220;

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

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


