-- Host: db-master-8.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=22194;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$R1aDHeC33b.TKJGdC8whcGiHUnkJw4UBCP9Zxdf0VmtDhRh4ZW0A7','admin','ak_5bae5aa9e6e629ab','2023-05-07 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$6tr6dL86y.9Y4GhLzGoB01zNIV5atTKRYrG/c49VIqek5Uzz9Sd/P','user','ak_69c0ecd3ea36e5f9','2023-01-05 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$4demtfHz4iILQDYD/oE62fgY/ECiYKACC9BEfmh2TftRyrvtCGhUN','admin','ak_1adc373a90b31f28','2023-11-06 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$M7v72wpREW6abndKi.w9n29RsGXLIZTDuQsnD3VUB.bhm7UoXQNPT','user','ak_d599399dccca9b76','2023-05-15 10:11:00',NULL);

