-- Host: db-master-1.internal    Database: webapp_db


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=10746;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$DV2MbFL6yA12AzU1Du9lkV79DjyV5OAvznwc3O2g/N1YMuLdUbfsi','admin','ak_a9db85260477fa75','2023-11-25 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$nsgY4rnOXAWrUbsmqqLd1euOOcy.XLnZ9dlYVnfPK6122hca40R5H','user','ak_400cf0d5ee2b5346','2023-03-13 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$90LBKcK2V2KaAb3l.z2NsMsJr33o3RE9gNpg6fMADD.9gOzNGHqxU','admin','ak_8f1b7985165a2893','2023-08-02 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$x6rS4qggj0YCDbM1of3iWYrKPLIi4UWVpyGGQqNW1P9KVrEDcxUHT','user','ak_636619e01291d3e1','2023-05-27 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$Mixq4u9HM2nX.mluRJNuiJ/rKYAEb8IYNV9YD2OXla1t7DrO04iCD','user','ak_80b8243967c2cb3a','2023-11-28 10:00:00',NULL);

