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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$eDqBLyN.zHkv2Us5ZqP0Nw1AH06HgQPkrQshLPRFLOi3IGvwtOcdl','user','ak_f0218da512a24411','2023-11-03 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$f5yUW8dLG3NdWSM8oTm/ocWVUQJTkZAHUPOokAf5X0ZHtvj/XXSXP','user','ak_e2d3bab119f1138c','2023-04-03 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$KpEVYlYQwv19DHdi5Ix5OJsFP0cSAV.PvquBqkf34afqGBHjrciW/','user','ak_02608f28ff7a74f7','2023-07-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$Lmou6NRDSxgsoSLeJwBrtYOkr4aCPrBayrfLsO3m84mfl72RDPxH0','user','ak_034046465124b44d','2023-12-12 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$N5xDXX5kg2OrwZ1WIdnsCJT8b7BhUDdDNrY7MB1z7Gfk7aZyVtC4e','user','ak_adfea79c5ccc4402','2023-06-22 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$UoRscJJWmhzxf15LaT3xvVEHCavkBITucLex8VtB9O.icXh9Mr.Kw','user','ak_3465e5eb1761b112','2023-11-19 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=4177;

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

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


