-- Host: db-master-4.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=32979;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$bO2ElIsZp4AMh1d.eQxH7YvrdSZFg1GIkGWkYL24QXLvu13ynNrGt','user','ak_aa192a93279b6eec','2023-09-26 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$jaeMQZH86QjhYR4T2PM8B6tISvTEc99kxTbMkMuOFD9YYd4JCDkCX','user','ak_9a68d0065ba40e56','2023-01-06 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$xOYWa0ghVhNuf/9UmymPMRM34EQDa66eIVdqMUyuz3D9ds2c.Ee2I','user','ak_f8a0f9ae748e52fa','2023-06-19 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$hPK5GpvZe1WydOrOez6BO9fn2OX3lccXezviwWwB5ZuhQMtZuNk/N','user','ak_df8a55778c193988','2023-03-28 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$r38gQn6hnJx7V0YJEFXBjKM/eBQ7eHLfUIUZEGIQcoTK/jtExB2Cx','user','ak_f71dabeee9f1b95c','2023-02-15 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$0ND9NTvck87OBaabZBfw1v6j6Eiyt/HLrNUry/L3hU5wy/cIEy9hI','user','ak_800542f493109d83','2023-01-02 10:09:00',NULL);

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

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


