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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$RUS6tZ9mPy2H7NUvMGjXvH3GlzT68TnWneMW5p04fkf4KA2lhKa44','user','ak_dba0f65b47d4d763','2023-12-06 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$wH94X.yfOQVl3PCn3SNHHzNrQ2eaGI4Rwt.HbNkIMKj0go/pLSf0P','admin','ak_e6995c57baa68c16','2023-02-01 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$5x1owccd6qcC/sT2s986qaN79.wgaaLTjbPalwdTTAT/hrJBmMBeW','user','ak_fa5d304c1d52be7d','2023-02-21 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$NxYiUDT8HVJm3I3Fti/rLFpbRTtSsiposs2Yuleunkzfh45Dqm21x','user','ak_cabface39fc80bdc','2023-11-02 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$kwBmHi/OWrTbVMUc.4JJ.TbaueGlNW3yPMmdI/UxMCBcfLsG5M0BG','user','ak_550c2e9c3e1d057e','2023-08-16 10:08: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=38186;

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


