-- Host: db-master-6.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=2837;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$SzelejnUMlR5mdEpUlfD43u9BeMfEuJrKIfa7Mw3s01YO3Qt8KHwF','user','ak_dd84321dcb012ddb','2023-12-04 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$8ZSbbn9ykwz6n7GQIb5injIHQmkiKYSguTi7k5AClFCuyn3BpG6PN','user','ak_ece3206ca18b657c','2023-11-24 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$bGiGJsUfWJyVddYj4Oy5LdH4k50/63dj5Y69wtNsaf32an/lNzuJP','user','ak_c0dc57862f034def','2023-09-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$YpztZ/IMux.ETu4nYlMse3mR9VFAUEvF0v2MjvVrcNgt.wm1d5LXL','user','ak_3ddb832a4725b574','2023-08-09 10:00: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=37600;

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


