-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$c6lCF8FuDnMbAshkbwkx5OM3P6Ky6zCPW32UlbQgM0ucRzmYoKMsp','user','ak_fe840248e3130189','2023-11-03 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$EdDsWtGGnqpjPfPsn2xFyUxwHhR3ZiiN.KcDIk/sq/ZFVblkyfcWy','user','ak_7dd4a33bf601799e','2023-08-02 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Hb0QzLRp6hBkf9VSyfIDrbPykD8uM4KRZg3ta9TQsxFoPIAJLG4cV','user','ak_7da034bb99b28bd0','2023-08-26 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$F/OKGaSdrQupuMUyTpAVeGJJjEbSURiLHouCJS5WrpuhkRhZiFVie','user','ak_4de6cbab7b85a53b','2023-12-06 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$NXJ89urlir8gs4Zm21v.RfT1RTG8e1fv9JV.1jUt6qVJ8jgARfRcM','user','ak_86fe02fc104f587e','2023-03-26 10:22: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=16883;

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

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


