-- Host: db-master-8.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=15936;

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$lBZ35tLLaTJg2ADaqfbxvJS0SD8uMhp34NmJzwIhPpoSFgmy2XIVi','user','ak_6510c41f0977c07c','2023-02-01 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$bdkWjAYxTS/iKY47rkN03EGuOI4oi3nq7YxEu31mZAy86tsBtN.iN','admin','ak_fec06594edcfcfc8','2023-11-07 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$unPUIjHeinvEMwU1V7BHEqQLTIkzfDunvnCi0NAKCqobPOhDg2Lyb','user','ak_e3e631c278111832','2023-12-12 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$PSrH92OXpa73hrR.MaB1EBgKe9K1wyYeq4Pt89q/A/g3c6uA4dXCT','admin','ak_fbae790a09175636','2023-06-09 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$NiDinWq65xh/mr4V381fP1GXgfraHHIu51JzPfBbYk3I2.9bqA5o5','admin','ak_b86eef9d3a80f4ac','2023-09-24 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$mnzua7FCQ7vcH4fJ8amYN2lsiBAOxV.P9iyBJwYGuBOX8ZGtpoqQf','admin','ak_b52ec8fc2003e16a','2023-10-10 10:06:00',NULL);

