-- Host: db-master-6.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=18142;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$RScTkc2jWlY.o.98uBh1bLZOCOjO.xW8G8pvwdsoJvzU7b5TriSnm','user','ak_9d7c0d9e27307efa','2023-03-08 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$EpLXbAriif.GJRrdR0htSvzXFhvK.gpzbKH8UzDAAt1TZ1eyMyZca','admin','ak_acb13a86a0d16969','2023-01-05 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$.tPllqMMOBcpsaGym0KAOeMXbMU4sYAsFDmKFQEzXvmeic.Dlgvbx','admin','ak_37009ea2514073ec','2023-03-27 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$/o0/1BA7Pj3sQ2.E3L8bvWF95vBTDV9BL95stF3YUdZecVm3/qa5h','user','ak_95cc338f33e888a0','2023-01-21 10:18:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=15430;

--
-- Dumping data for table `sessions`
--


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

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


