-- Host: db-master-8.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=11658;

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$8bfGIo0.4EcTPLKNWbsyzz6HrxSUGzMQhkxmt/wGV12yC0MoZ7k01','user','ak_4d98feed7e156921','2023-03-03 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$AGMerru1L3UEnnxsX.ZlIHo8eDZegbn.d19lqYuU41Iq3CGnUa8GX','user','ak_000b7b9b15382413','2023-03-20 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$ikwSxyvRqNyr8gEZ1SfBlXr1ZHErl3dXO4wFsi5sY9VqJO43Szs5h','admin','ak_91ebd600e3b5514f','2023-06-23 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$iZuhhrZTBDih6UE/2hHWbwu3.Lumjxqgub7b5LGJx4.I.ahkS2hmr','user','ak_f40fba6aca6bdf9e','2023-01-21 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$y8s.XdlfIo.nZ32br0lFh3GQXRofKlL2rrY3pS54Gy/GpFTPKF4.8','user','ak_2db3dd36c8351cdc','2023-08-21 10:21:00',NULL);

