-- Host: db-master-1.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=17457;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$vzGSIGtOzHAuSR4EFq90c.1KKyBpnw5BVhnsoz5E48Xi6xF.HMKjR','admin','ak_d71ccd232fa6504c','2023-02-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$u1SfbQxK4n6ls1ohqNdYJP4J8zs0.j0sXxSD/QpDMEsOtI6MD.UQL','admin','ak_82820449023e87c7','2023-04-13 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$/XN41ZVeTwdeESSDz9RxoQ/z/mbFsW0sYvkkAfk6jBV6sc8cTXeEP','user','ak_5953e2b3296d955b','2023-03-26 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$aOYfa/U5BBsU0zH7TriuzGigxfOiZD2m26LtZE4Cl52W0f5PQH8Ix','user','ak_556e1a1ce81cef02','2023-10-27 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$HokocyZP9bwxgS7N.KGfoE.2cAz7s6Ywxtgth9h/vXlYqIjg/3scb','user','ak_b5187ee4b43cecb5','2023-10-26 10:17: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=42041;

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


