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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$WIdweXgl8LCmnexxu1JWf2UGId1MZwcPmCzJq0LVDZSO/rusvlp8B','user','ak_156eefaac77dd59d','2023-03-03 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$SDfloVWAzpnCGJCzS1fqtoGvuvpsggZJnaxQ2nzZrkhgNsOWsO6C.','user','ak_1a01d68086a2ca20','2023-11-18 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$z12Bb1igmrKthRPVU5F.vdMoq3cySHOux50ZjRUk2hMdfH90gb2HN','user','ak_ecd1a66b557ce1b8','2023-03-08 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$Swxv4L6YRzmnAiqp41Vwu4c6qXjt/od2T5AHDaYK4.wF5D89.A0YN','user','ak_84824214b9386695','2023-05-18 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$jqFR.7SdNGkdza4NQcp38eSAX4v4NlSWkJmdcSZi3J0DMrYOxRg0N','user','ak_bd778c5ab3506492','2023-04-06 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$xvbraGfRAdsSumeFZ0PlwYFIohg43CoGilGBmjFJypv071L.Qbc8P','user','ak_a3e54c9893478dd1','2023-06-13 10:19: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=29264;

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


