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


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$knacw7aqlKfGjSZkDNCdUMdN1q.u3UwIx1EzBQePGJnfm2.oYkPqC','user','ak_38e4bea7b373fc25','2023-02-19 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$SoUAF6KzdDw2snrczQZTqCTw7HyFSc9bws3Ij7nfCq3yNsPf9iCej','admin','ak_abcbf21887fbbc22','2023-12-15 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$jBkamEX1ZeUjMr5JUuWOP5WtsghDl68rKTNLXwKtR6HqDRqpMm04Y','admin','ak_0ced610e2f11b13a','2023-06-06 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$3Du5G62kA4SmQ/drdlJUVHxGJXHgJKsG8mIKVlVY.86V.lM98RcQL','user','ak_ac87a16e3d413abb','2023-04-07 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$s7ISIQnZEckJRWRYdkZ1gSZTVj40QSoUfPbDf0PwyAkGnqKwjd5z.','admin','ak_22c9cf7fc9a94b4b','2023-02-10 10:02:00',NULL);

