-- Host: db-master-3.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=29369;

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$G9xVHE5FM10WgXtEB6UxfViobUbI.hCblJ/Emhyx21N1YObXQ.g0F','admin','ak_31690ef96628b1f9','2023-08-26 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$DrKnNZRFJAW44x3zUYdgUhPxDjDIDe00BFMCv/DtNtdOYYTxRMZJL','user','ak_db18c865e2d4815e','2023-02-12 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$bnI6uG/KRgq0puhu4rCoa2PBhAaG7kxrpjXxrsGxlNa7fN3FLEJOx','admin','ak_88a97f80651965a1','2023-10-12 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$PGtlpBFaSNGJ6TNYhX9NY9WC.ue9g6/DgDPMWbR0Ea8fdpAF0BQ0z','user','ak_fe9066fbad7aea9e','2023-04-07 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$1JUilRZDRDM9eTu4u403ktK306PQz9NrF0mkRt4FvE.oIWIpqhk2W','admin','ak_69c025936127cf5f','2023-04-15 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$uY.pjIx9K422IlZag.4UC1AGalVO2WHTlKzuydIftHV/q6H2hOz5q','user','ak_879f15c66f2a5b67','2023-02-19 10:10:00',NULL);

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

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


