-- Host: db-master-3.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=27897;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$nsuwAeS5QcNGyD4lgmy1aiGd4f4xutdK2PV/sW5Jn391h/nydL3O6','admin','ak_679ad0cfee953514','2023-09-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$PLVJvX.WnrX3fvhDIMLqAP8hO8Gx9.YB5cEMpMz4./axOAAVUd21q','user','ak_5eded041161ce23e','2023-01-26 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$e0.Aw/oVRaq0Gl67kcBC0Q2XKlKUB0Pc3oEyGJwcAe8Jzs05Hu6ML','user','ak_d56f7406c9cea3c6','2023-02-24 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$VblX7XpDJkQ/8dP8HaBpgEMsPoHjfZcTHIpqoDPcVMx2I3npDD/.b','admin','ak_84f4927bfbe68acc','2023-04-26 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$h9dgH7rQQfcusza5N.LGHZ7H4xBMlBFd5wh2Wss.h20GIRd9vQEfj','user','ak_c0a327f42c31c291','2023-08-28 10:13: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=17516;

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


