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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$mIPpEF/Pb6glM23JaYMr5f9KxAz/WefS8iVAoVOSH1co.6LLJeRIn','admin','ak_3d7d2e93f351f110','2023-11-26 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$P3D4F2x3aS7aTz2ivHNyC5J8KK07uMYFKNlklMWJcN2xuGf8pWyAZ','admin','ak_207d1cf39e8a2a93','2023-08-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$3fKrEkCdbVxV.Wy8tsZ9lADKI2Y4e0bRkI3kDJz.7myHBVPiPAXKs','admin','ak_9cc93cdf06e7ce53','2023-02-03 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$FPg3uB0S6.v59Ni2OEfhNqrara/TQSTs4JheebmGp5BbzSiyLIMtq','admin','ak_26f50c9b9a96d072','2023-02-15 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$NXa3b.FUJdu4EwvsQA.ftixC/gLa9BuhZWWPt6mn3QTkps1fIQqPX','admin','ak_ee571a6262ccc77d','2023-12-22 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$QIQpos7GrxQzIMWjuV4Ax87YvdiQR6RcnfMbSVNdmeluiWR6FrAo5','user','ak_6df543bc2b3f4c3f','2023-05-07 10:08: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=44743;

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


