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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$yQTzw4WFi3JQg7qqHSUwBHMfbhlCwPgSfxAzyiSg08vUzQquegbo/','admin','ak_c575baa7dcbe27e4','2023-04-04 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$.lGbYEEHyBBZ0DAFC/PjW2AxqcT5v.mhE5Fo6oNUAMOfJb4kGRUY4','user','ak_b7173992e2107f59','2023-11-11 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$vYCKM9Ug2M1P/S3Tub9ga1ZXvC.ACb1U69wF2m8ys8fxcXCw7dcuE','user','ak_31c2923640f8535b','2023-09-27 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$8zJvnw5O8dZYjM/fof/IGTVsSXO5hMjZwjAoNE.QypKH94R0bu8mL','user','ak_39047424165b6168','2023-11-04 10:22:00',NULL);

