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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$YYG27w1up37cv01Fgo2kAlzCKFssvMS6ijrXtkLiaPN3HzOUwtoem','user','ak_ad9f0f40480b1e80','2023-05-18 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$IL43PY.1WpU71/rVfXmIMlDFD29H.StX1QFItMlLhnAgPYxJB1p1Y','admin','ak_418477f528755c0e','2023-01-24 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$jXH1ta4skVA8ZkYBQ/x2TnxgSzsVlymz99WMT91b/tcvAu1tI3IFT','admin','ak_312c7421376458ce','2023-03-27 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$1o6Tif295OzC9uXz5j3ObxC/HR.QmuDZk8LZ8CR2VHL2/rkXA12qb','user','ak_2f5fd30aeb5c71e4','2023-02-28 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$7W5OwCKYsQbav/ze1K6zNTChObgfrky9CcboyKm6r2fTUSL0IrcqE','admin','ak_3930e852edf6513c','2023-12-19 10:03: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=30761;

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


